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.

$ZDATEerroptThis parameter suppresses errors associated with invalid or out of range hdate values. Insteadof generating or errors, the functionreturns erropt.ExamplesThe first example shows the $HOROLOG internal format:WRITE $HOROLOGreturns a value such as the following: 58890,42347.The following example returns this date in the default format, MM/DD/YY:WRITE $ZDATE($HOROLOG)returns 03/27/2002.The following command returns the date in a different format:WRITE $ZDATE($HOROLOG,2)returns 27 Mar 2002.Date Format ExamplesThe following examples illustrate how $ZDATE returns the various dformat formats:WRITE $ZDATE(26240,1)returns 11/04/12.WRITE $ZDATE(26240,2)returns 04 Nov 12.WRITE $ZDATE(26240,3)returns 1912-11-04.WRITE $ZDATE(26240,4)returns 04/11/12.WRITE $ZDATE(26240,5)returns Nov 4, 1912.WRITE $ZDATE(26240,6)<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 329

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

Saved successfully!

Ooh no, something went wrong!