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/2025library testQCSXTZZZIBWUAddWeeks
(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 methodsno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.NextDay() #--> 31/05/2026composed from the signature, run for this page
PreviousDay
(no comment in the source: the name reads as a sentence) previous dayin the section smart navigation methodsno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.PreviousDay() #--> 29/05/2026composed from the signature, run for this page
NextWeekday
(no comment in the source: the name reads as a sentence) next weekdayin the section smart navigation methodsno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.NextWeekday() #--> 01/06/2026composed from the signature, run for this page
PreviousWeekday
(no comment in the source: the name reads as a sentence) previous weekdayin the section smart navigation methodsno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.PreviousWeekday() #--> 29/05/2026composed from the signature, run for this page
NextMonday
(no comment in the source: the name reads as a sentence) next mondayin the section smart navigation methodsno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.NextMonday() #--> 01/06/2026composed from the signature, run for this page
FirstDayOfMonth
(no comment in the source: the name reads as a sentence) first day of monthin the section smart navigation methodsno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.FirstDayOfMonth() #--> 01/05/2026composed from the signature, run for this page
LastDayOfMonth
(no comment in the source: the name reads as a sentence) last day of monthin the section smart navigation methodsno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.LastDayOfMonth() #--> 31/05/2026composed from the signature, run for this page
StartOfMonth
(no comment in the source: the name reads as a sentence) start of monthin the section smart navigation methodsQCSXTZZZIBWU
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.StartOfMonth() #--> 01/05/2026composed from the signature, run for this page
EndOfMonth
(no comment in the source: the name reads as a sentence) end of monthin the section smart navigation methodsQCSXTZZZIBWU
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.EndOfMonth() #--> 31/05/2026composed from the signature, run for this page
StartOfYear
(no comment in the source: the name reads as a sentence) start of yearin the section smart navigation methodsQCSXTZZZIBWU
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.StartOfYear() #--> 01/01/2026composed from the signature, run for this page
EndOfYear
(no comment in the source: the name reads as a sentence) end of yearin the section smart navigation methodsQCSXTZZZIBWU
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.EndOfYear() #--> 31/12/2026composed from the signature, run for this page
DayAfterMonthEnd
(no comment in the source: the name reads as a sentence) day after month endin the section smart navigation methodsQCSXTZZZIBWU
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.DayAfterMonthEnd() #--> 01/06/2026composed from the signature, run for this page
DayBeforeMonthStart
(no comment in the source: the name reads as a sentence) day before month startin the section smart navigation methodsQCSXTZZZIBWU
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.DayBeforeMonthStart() #--> 30/04/2026composed from the signature, run for this page
DayAfterYearEnd
(no comment in the source: the name reads as a sentence) day after year endin the section smart navigation methodsQCSXTZZZIBWU
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.DayAfterYearEnd() #--> 01/01/2027composed from the signature, run for this page
DayBeforeYearStart
(no comment in the source: the name reads as a sentence) day before year startin the section smart navigation methodsQCSXTZZZIBWU
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.DayBeforeYearStart() #--> 31/12/2025composed from the signature, run for this page
NextEndOfMonth
(no comment in the source: the name reads as a sentence) next end of monthin the section smart navigation methodsQCSXTZZZIBWU
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.NextEndOfMonth() #--> 30/06/2026composed from the signature, run for this page
PreviousEndOfMonth
(no comment in the source: the name reads as a sentence) previous end of monthin the section smart navigation methodsQCSXTZZZIBWU
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.PreviousEndOfMonth() #--> 30/04/2026composed from the signature, run for this page
NextStartOfMonth
(no comment in the source: the name reads as a sentence) next start of monthin the section smart navigation methodsQCSXTZZZIBWU
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.NextStartOfMonth() #--> 01/06/2026composed from the signature, run for this page
PreviousStartOfMonth
(no comment in the source: the name reads as a sentence) previous start of monthin the section smart navigation methodsQCSXTZZZIBWU
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.PreviousStartOfMonth() #--> 01/04/2026composed from the signature, run for this page
MidMonth
(no comment in the source: the name reads as a sentence) mid monthin the section smart navigation methodsQCSXTZZZIBWU
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.MidMonth() #--> 16/05/2026composed from the signature, run for this page
FirstWeekdayOfMonth
(no comment in the source: the name reads as a sentence) first weekday of monthin the section smart navigation methodsQCSXTZZZIBWU
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.FirstWeekdayOfMonth() #--> 01/05/2026composed from the signature, run for this page
LastWeekdayOfMonth
(no comment in the source: the name reads as a sentence) last weekday of monthin the section smart navigation methodsQCSXTZZZIBWU
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.LastWeekdayOfMonth() #--> 29/05/2026composed from the signature, run for this page
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 checksno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.IsWeekend() #--> 1composed from the signature, run for this page
IsWeekday
utility checksno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.IsWeekday() #--> 0composed from the signature, run for this page
IsToday
utility checksno extension
IsYesterday
utility checksno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.IsYesterday() #--> 0composed from the signature, run for this page
IsTomorrow
utility checksno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.IsTomorrow() #--> 0composed from the signature, run for this page
Age
utility checksno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.Age() #--> 0composed from the signature, run for this page
(no comment in the source: the name reads as a sentence) year 1 examples runin the section enhanced gettersno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.Year() #--> 2026composed from the signature, run for this page
YearN
(no comment in the source: the name reads as a sentence) year nin the section enhanced gettersno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.YearN() #--> 2026composed from the signature, run for this page
(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, 2024library testno extensionMonthName
(no comment in the source: the name reads as a sentence) month namein the section enhanced gettersno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.MonthName() #--> Maycomposed from the signature, run for this page
MonthN
(no comment in the source: the name reads as a sentence) month nin the section enhanced gettersno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.MonthN() #--> 5composed from the signature, run for this page
(no comment in the source: the name reads as a sentence) month number 1 examples runin the section enhanced gettersno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.MonthNumber() #--> 5composed from the signature, run for this page
MonthNumberInString
(no comment in the source: the name reads as a sentence) month number in stringin the section enhanced gettersno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.MonthNumberInString() #--> 05composed from the signature, run for this page
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 gettersno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.MonthShort() #--> Maycomposed from the signature, run for this page
(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, 2024library testno extensionDayN
(no comment in the source: the name reads as a sentence) day nin the section enhanced gettersno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.DayN() #--> 30composed from the signature, run for this page
(no comment in the source: the name reads as a sentence) day number 1 examples runin the section enhanced gettersno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.DayNumber() #--> 30composed from the signature, run for this page
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 gettersno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.DayShort() #--> Satcomposed from the signature, run for this page
DayOfWeek
(no comment in the source: the name reads as a sentence) day of weekalso written: DayOfWeekNin the section enhanced gettersno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.DayOfWeek() #--> 6composed from the signature, run for this page
(no comment in the source: the name reads as a sentence) day of year 1 examples runalso written: DayOfYearNin the section enhanced gettersno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.DayOfYear() #--> 150composed from the signature, run for this page
(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()
#--> 29library 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
#--> 366library testno extensionDaysInMonthN
(no comment in the source: the name reads as a sentence) days in month nin the section enhanced gettersno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.DaysInMonthN() #--> 31composed from the signature, run for this page
(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
#--> 366library testno extensionDaysInYearN
(no comment in the source: the name reads as a sentence) days in year nin the section enhanced gettersno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.DaysInYearN() #--> 365composed from the signature, run for this page
(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()
#--> 0library 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
#--> 0library 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, 2024library testno extensionToRelative
(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/2024library 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, 2024library 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, 2024library 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, 2024library testno extensionToShort
(no comment in the source: the name reads as a sentence) to shortin the section human-readable formattingno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.ToShort() #--> Sat 30 Maycomposed from the signature, run for this page
ToLong
(no comment in the source: the name reads as a sentence) to longin the section human-readable formattingno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.ToLong() #--> Saturday, May 30, 2026composed from the signature, run for this page
julian day methods 1 examples run
o1 = new stzDate("2025-10-10")
? o1.ToJulianDay()
#--> 2460959library testno extensionFromJulianDay
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) #--> 1library testno extension
Copy
batch operationsno extension
SetComponents
utility methodsQCSXTZZZIBWU
Components
utility methodsno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? @@( o1.Components() ) #--> [ 2026, 5, 30 ]composed from the signature, run for this page
IsValid
utility methodsno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.IsValid() #--> 1composed from the signature, run for this page
IsAStzDate
utility methodsno extension
composed example
o1 = new stzDate([ 2026, 5, 30 ]) ? o1.IsAStzDate() #--> 1composed from the signature, run for this page

