11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

$ZDATE$ZDATEValidates date and converts format.$ZDATE(hdate,dformat,monthlist,yearopt,startwin,endwin,mindate,maxdate,erropt)$ZD(hdate,dformat,monthlist,yearopt,startwin,endwin,mindate,maxdate,erropt)ParametershdatedformatmonthlistyearoptstartwinendwinmindatemaxdateerroptThe internal date format value representing the number of days elapsedsince December 31, 1840.Optional — Format for the returned date.Optional — A string or the name of a variable that contains the monthnames you supplied.Optional — A code that specifies whether to represent years as twoorfour-digit valuesOptional — The start of the sliding window during which dates mustbe represented with two-digit years.Optional — The end of the sliding window during which dates arerepresented with two-digit years.Optional — The lower limit of the range of valid dates.Optional — The upper limit of the range of valid dates.Optional — This parameter suppresses error codes associated withinvalid or out of range hdate values.DescriptionThe $ZDATE function converts a specified date in $HOROLOG format to one of severalalternate date formats. The value returned by $ZDATE depends on the parameters you use.Simple $ZDATE format$ZDATE(hdate), the most basic form of $ZDATE, returns the date in a printable format thatcorresponds to the specified hdate. hdate is an integer value that is the number of days elapsedsince December 31, 1840, and can range from 0 to 2980013 (12/31/1840 to 12/31/9999).By default, $ZDATE(hdate) represents years between 1900 and 1999 with two digits. Itrepresents years that fall before 1900 or after 1999 with four digits. For example:WRITE $ZDATE(21400)<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 323

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!