Softanza
StartFrançais
Softanza
The library documents itself · Internationalization

stzDate

92 own methods · 26 forms written with extensions, listed under their method

the source: base/datetime/stzDate.ring(opens in a new tab) · All classes · The area reference: Internationalization

Under each method, its extensions (Q CS XT Z ZZ IB W U): bold and ticked, it exists; struck, it does not. The extensions and what they mean

Examples: 15 come from the library's tests; 46 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzDate([ 2026, 5, 30 ]). 31 methods have none yet. Examples run on 2026-10-03 12:54 inside the library at commit 0e72e2e2c.

Method
Explanation, as the source carries it
init
(no comment in the source: the name reads as a sentence) initno extension
SetDate
(no comment in the source: the name reads as a sentence) set dateno extension
ParseStringDate
(no comment in the source: the name reads as a sentence) parse string dateno extension
(no comment in the source: the name reads as a sentence) add days 2 examples runin the section enhanced arithmetic operations
oDate = StzDateQ("01/01/2025")
oDate.AddDays(30)
? oDate.Date()
#--> 31/01/2025
library testQCSXTZZZIBWU
AddWeeks
(no comment in the source: the name reads as a sentence) add weeksin the section enhanced arithmetic operationsQCSXTZZZIBWU
(no comment in the source: the name reads as a sentence) add months 1 examples runin the section enhanced arithmetic operationsQCSXTZZZIBWU
(no comment in the source: the name reads as a sentence) add years 1 examples runin the section enhanced arithmetic operationsQCSXTZZZIBWU
SubtractDays
(no comment in the source: the name reads as a sentence) subtract daysin the section enhanced arithmetic operationsQCSXTZZZIBWU
SubtractWeeks
(no comment in the source: the name reads as a sentence) subtract weeksin the section enhanced arithmetic operationsQCSXTZZZIBWU
SubtractMonths
(no comment in the source: the name reads as a sentence) subtract monthsin the section enhanced arithmetic operationsQCSXTZZZIBWU
SubtractYears
(no comment in the source: the name reads as a sentence) subtract yearsin the section enhanced arithmetic operationsQCSXTZZZIBWU
NextDay
(no comment in the source: the name reads as a sentence) next dayin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.NextDay()
#--> 31/05/2026
composed from the signature, run for this page
no extension
PreviousDay
(no comment in the source: the name reads as a sentence) previous dayin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.PreviousDay()
#--> 29/05/2026
composed from the signature, run for this page
no extension
NextWeekday
(no comment in the source: the name reads as a sentence) next weekdayin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.NextWeekday()
#--> 01/06/2026
composed from the signature, run for this page
no extension
PreviousWeekday
(no comment in the source: the name reads as a sentence) previous weekdayin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.PreviousWeekday()
#--> 29/05/2026
composed from the signature, run for this page
no extension
NextMonday
(no comment in the source: the name reads as a sentence) next mondayin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.NextMonday()
#--> 01/06/2026
composed from the signature, run for this page
no extension
FirstDayOfMonth
(no comment in the source: the name reads as a sentence) first day of monthin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.FirstDayOfMonth()
#--> 01/05/2026
composed from the signature, run for this page
no extension
LastDayOfMonth
(no comment in the source: the name reads as a sentence) last day of monthin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.LastDayOfMonth()
#--> 31/05/2026
composed from the signature, run for this page
no extension
StartOfMonth
(no comment in the source: the name reads as a sentence) start of monthin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.StartOfMonth()
#--> 01/05/2026
composed from the signature, run for this page
QCSXTZZZIBWU
EndOfMonth
(no comment in the source: the name reads as a sentence) end of monthin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.EndOfMonth()
#--> 31/05/2026
composed from the signature, run for this page
QCSXTZZZIBWU
StartOfYear
(no comment in the source: the name reads as a sentence) start of yearin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.StartOfYear()
#--> 01/01/2026
composed from the signature, run for this page
QCSXTZZZIBWU
EndOfYear
(no comment in the source: the name reads as a sentence) end of yearin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.EndOfYear()
#--> 31/12/2026
composed from the signature, run for this page
QCSXTZZZIBWU
DayAfterMonthEnd
(no comment in the source: the name reads as a sentence) day after month endin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.DayAfterMonthEnd()
#--> 01/06/2026
composed from the signature, run for this page
QCSXTZZZIBWU
DayBeforeMonthStart
(no comment in the source: the name reads as a sentence) day before month startin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.DayBeforeMonthStart()
#--> 30/04/2026
composed from the signature, run for this page
QCSXTZZZIBWU
DayAfterYearEnd
(no comment in the source: the name reads as a sentence) day after year endin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.DayAfterYearEnd()
#--> 01/01/2027
composed from the signature, run for this page
QCSXTZZZIBWU
DayBeforeYearStart
(no comment in the source: the name reads as a sentence) day before year startin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.DayBeforeYearStart()
#--> 31/12/2025
composed from the signature, run for this page
QCSXTZZZIBWU
NextEndOfMonth
(no comment in the source: the name reads as a sentence) next end of monthin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.NextEndOfMonth()
#--> 30/06/2026
composed from the signature, run for this page
QCSXTZZZIBWU
PreviousEndOfMonth
(no comment in the source: the name reads as a sentence) previous end of monthin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.PreviousEndOfMonth()
#--> 30/04/2026
composed from the signature, run for this page
QCSXTZZZIBWU
NextStartOfMonth
(no comment in the source: the name reads as a sentence) next start of monthin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.NextStartOfMonth()
#--> 01/06/2026
composed from the signature, run for this page
QCSXTZZZIBWU
PreviousStartOfMonth
(no comment in the source: the name reads as a sentence) previous start of monthin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.PreviousStartOfMonth()
#--> 01/04/2026
composed from the signature, run for this page
QCSXTZZZIBWU
MidMonth
(no comment in the source: the name reads as a sentence) mid monthin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.MidMonth()
#--> 16/05/2026
composed from the signature, run for this page
QCSXTZZZIBWU
FirstWeekdayOfMonth
(no comment in the source: the name reads as a sentence) first weekday of monthin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.FirstWeekdayOfMonth()
#--> 01/05/2026
composed from the signature, run for this page
QCSXTZZZIBWU
LastWeekdayOfMonth
(no comment in the source: the name reads as a sentence) last weekday of monthin the section smart navigation methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.LastWeekdayOfMonth()
#--> 29/05/2026
composed from the signature, run for this page
QCSXTZZZIBWU
operator
enhanced operator overloadingno extension
ParseOperation
enhanced operator overloadingno extension
(no comment in the source: the name reads as a sentence) days to 1 examples runalso written: DaysToN · DaysToDate · DaysToDateNin the section comparison methodsno extension
WeeksTo
(no comment in the source: the name reads as a sentence) weeks toalso written: WeeksToN · WeeksToDate · WeeksToDateNin the section comparison methodsno extension
MonthsTo
(no comment in the source: the name reads as a sentence) months toalso written: MonthsToN · MonthsToDate · MonthsToDateNin the section comparison methodsno extension
YearsTo
(no comment in the source: the name reads as a sentence) years toalso written: YearsToN · YearsToDate · YearsToDateNin the section comparison methodsno extension
(no comment in the source: the name reads as a sentence) is before 2 examples runin the section comparison methodsno extension
(no comment in the source: the name reads as a sentence) is after 2 examples runin the section comparison methodsno extension
IsEqualTo
(no comment in the source: the name reads as a sentence) is equal toin the section comparison methodsno extension
(no comment in the source: the name reads as a sentence) is equal 1 examples runin the section comparison methodsno extension
IsSameWeek
(no comment in the source: the name reads as a sentence) is same weekin the section comparison methodsno extension
IsSameMonth
(no comment in the source: the name reads as a sentence) is same monthin the section comparison methodsno extension
IsSameYear
(no comment in the source: the name reads as a sentence) is same yearin the section comparison methodsno extension
IsWeekend
utility checks
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.IsWeekend()
#--> 1
composed from the signature, run for this page
no extension
IsWeekday
utility checks
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.IsWeekday()
#--> 0
composed from the signature, run for this page
no extension
IsToday
utility checksno extension
IsYesterday
utility checks
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.IsYesterday()
#--> 0
composed from the signature, run for this page
no extension
IsTomorrow
utility checks
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.IsTomorrow()
#--> 0
composed from the signature, run for this page
no extension
Age
utility checks
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.Age()
#--> 0
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) year 1 examples runin the section enhanced getters
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.Year()
#--> 2026
composed from the signature, run for this page
no extension
YearN
(no comment in the source: the name reads as a sentence) year nin the section enhanced getters
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.YearN()
#--> 2026
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) month 2 examples runin the section enhanced getters
o1 = new stzDate("10/12/2024")
? o1.Day()
? o1.Month()
? o1.ToHuman()
#--> Tuesday
#--> December
#--> Tuesday, December 10th, 2024
library testno extension
MonthName
(no comment in the source: the name reads as a sentence) month namein the section enhanced getters
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.MonthName()
#--> May
composed from the signature, run for this page
no extension
MonthN
(no comment in the source: the name reads as a sentence) month nin the section enhanced getters
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.MonthN()
#--> 5
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) month number 1 examples runin the section enhanced getters
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.MonthNumber()
#--> 5
composed from the signature, run for this page
no extension
MonthNumberInString
(no comment in the source: the name reads as a sentence) month number in stringin the section enhanced getters
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.MonthNumberInString()
#--> 05
composed from the signature, run for this page
no extension
MonthInLanguage
(no comment in the source: the name reads as a sentence) month in languagealso written: MonthInin the section enhanced gettersno extension
MonthShort
(no comment in the source: the name reads as a sentence) month shortin the section enhanced getters
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.MonthShort()
#--> May
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) day 2 examples runalso written: DayNamein the section enhanced getters
o1 = new stzDate("10/12/2024")
? o1.Day()
? o1.Month()
? o1.ToHuman()
#--> Tuesday
#--> December
#--> Tuesday, December 10th, 2024
library testno extension
DayN
(no comment in the source: the name reads as a sentence) day nin the section enhanced getters
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.DayN()
#--> 30
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) day number 1 examples runin the section enhanced getters
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.DayNumber()
#--> 30
composed from the signature, run for this page
no extension
DayInLanguage
(no comment in the source: the name reads as a sentence) day in languagein the section enhanced gettersno extension
DayIn
(no comment in the source: the name reads as a sentence) day inin the section enhanced gettersno extension
DayShort
(no comment in the source: the name reads as a sentence) day shortin the section enhanced getters
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.DayShort()
#--> Sat
composed from the signature, run for this page
no extension
DayOfWeek
(no comment in the source: the name reads as a sentence) day of weekalso written: DayOfWeekNin the section enhanced getters
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.DayOfWeek()
#--> 6
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) day of year 1 examples runalso written: DayOfYearNin the section enhanced getters
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.DayOfYear()
#--> 150
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) week number 1 examples runin the section enhanced getters
? StzDateQ("15/07/2024").WeekNumber()
#--> 29
library testno extension
(no comment in the source: the name reads as a sentence) days in month 1 examples runin the section enhanced getters
oDate = StzDateQ("15/02/2024")
? oDate.DaysInMonth()
? oDate.DaysInYear()
#--> 29
#--> 366
library testno extension
DaysInMonthN
(no comment in the source: the name reads as a sentence) days in month nin the section enhanced getters
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.DaysInMonthN()
#--> 31
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) days in year 1 examples runin the section enhanced getters
oDate = StzDateQ("15/02/2024")
? oDate.DaysInMonth()
? oDate.DaysInYear()
#--> 29
#--> 366
library testno extension
DaysInYearN
(no comment in the source: the name reads as a sentence) days in year nin the section enhanced getters
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.DaysInYearN()
#--> 365
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) is leap year 3 examples runin the section enhanced getters
# 2023 is not a leap year
? StzDateQ("01/01/2023").IsLeapYear()
#--> 0
library testno extension
(no comment in the source: the name reads as a sentence) is leap 1 examples runin the section enhanced getters
? StzDateQ("15/02/2024").IsLeapYear()
? StzDateQ("15/02/2025").IsLeap()
#--> 1
#--> 0
library testno extension
(no comment in the source: the name reads as a sentence) to human 1 examples runin the section human-readable formatting
o1 = new stzDate("10/12/2024")
? o1.Day()
? o1.Month()
? o1.ToHuman()
#--> Tuesday
#--> December
#--> Tuesday, December 10th, 2024
library testno extension
ToRelative
(no comment in the source: the name reads as a sentence) to relativein the section human-readable formattingno extension
(no comment in the source: the name reads as a sentence) to string 7 examples runalso written: Date · Contentin the section human-readable formatting
o1 = new stzDate([ 2024, 10, 10 ])
? o1.Date()
#--> 10/10/2024
library testQCSXTZZZIBWU
(no comment in the source: the name reads as a sentence) to iso8601 1 examples runin the section human-readable formatting
oDate = StzDateQ("15/07/2024")
? oDate.ToEuropean()
? oDate.ToAmerican()
? oDate.ToISO8601()
? oDate.ToStringXT("dddd, MMMM d, yyyy") # Custom format
#--> 15/07/2024
#--> 07/15/2024
#--> 2024-07-15
#--> Monday, July 15, 2024
library testno extension
(no comment in the source: the name reads as a sentence) to european 1 examples runin the section human-readable formatting
oDate = StzDateQ("15/07/2024")
? oDate.ToEuropean()
? oDate.ToAmerican()
? oDate.ToISO8601()
? oDate.ToStringXT("dddd, MMMM d, yyyy") # Custom format
#--> 15/07/2024
#--> 07/15/2024
#--> 2024-07-15
#--> Monday, July 15, 2024
library testno extension
(no comment in the source: the name reads as a sentence) to american 1 examples runin the section human-readable formatting
oDate = StzDateQ("15/07/2024")
? oDate.ToEuropean()
? oDate.ToAmerican()
? oDate.ToISO8601()
? oDate.ToStringXT("dddd, MMMM d, yyyy") # Custom format
#--> 15/07/2024
#--> 07/15/2024
#--> 2024-07-15
#--> Monday, July 15, 2024
library testno extension
ToShort
(no comment in the source: the name reads as a sentence) to shortin the section human-readable formatting
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.ToShort()
#--> Sat 30 May
composed from the signature, run for this page
no extension
ToLong
(no comment in the source: the name reads as a sentence) to longin the section human-readable formatting
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.ToLong()
#--> Saturday, May 30, 2026
composed from the signature, run for this page
no extension
julian day methods 1 examples run
o1 = new stzDate("2025-10-10")
? o1.ToJulianDay()
#--> 2460959
library testno extension
FromJulianDay
julian day methodsQCSXTZZZIBWU
batch operations 1 examples run
oYesterday = new stzDate(:Yesterday)
oToday = new stzDate(:Today)
oTomorrow = new stzDate(:Tomorrow)
? oToday.IsBetween(oYesterday, :And = oTomorrow)
#--> 1
library testno extension
Copy
batch operationsno extension
SetComponents
utility methodsQCSXTZZZIBWU
Components
utility methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? @@( o1.Components() )
#--> [ 2026, 5, 30 ]
composed from the signature, run for this page
no extension
IsValid
utility methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.IsValid()
#--> 1
composed from the signature, run for this page
no extension
IsAStzDate
utility methods
composed example
o1 = new stzDate([ 2026, 5, 30 ])
? o1.IsAStzDate()
#--> 1
composed from the signature, run for this page
no extension