Force YYYY format
Hi Guys,
when using $ZD(mydate,4) sometimes it returns year as 4 digits and sometimes two, and the documentation is saying ([YY]YY is a two-digit year if hdate falls within the active window for two-digit years; otherwise it is a four-digit year), what active window for two means and how can I force the year to be always 4 digits ?
Thanks
Product version: Caché 2014.1
https://docs.intersystems.com/iris20211/csp/docbook/DocBook.UI.Page.cls?KEY=RCOS_fzdate
write $zd(+$h,4,,4)
or include
S X=$ZU(123,0,1,1)
in your system startup routine so that the only date that ever shows up with a 2 digit year is 1st Jan 1841
Check out the old %DATE utility