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.

$ZDATETIMEH• The format Mmm DD YY• The format YYYYMMDD (numeric format)Parameter ValuesdatetimeThe date and time that you want to convert to $HOROLOG format. You specify datetimeas an expression that evaluates to a single string with the date first, followed by a single blankspace, followed by the time. If you omit the time portion, $ZDATETIMEH sets the timeportion of the $HOROLOG format to zero. Valid date and time values depend on the Date-Format and TimeFormat properties of the current locale and the values specified for thedformat and tformat parameters. For details on specifying dates, refer to $ZDATEH.dformatFormat for the date. Valid values are:Value-1123456789MeaningGet effective dformat value from the DateFormat property of the current locale,which defaults to a value of 1. This is the default behavior if you do not specifydformat.MM/DD/[YY]YY (01/01/97 or 03/27/2002) - The default formatDD Mmm [YY]YY (01 Jul 97 or 27 Mar 2002)YYYY-MM-DD (1997-07-01 or 2002-03-27) - ODBC formatDD/MM/[YY]YY (01/07/97 or 27/03/2002) - European formatMmm D, YYYY (Jul 1, 1997 or Mar 27, 2002)Mmm D YYYY (Jul 1 1997 or Mar 27 2002)Mmm DD [YY]YY (Jul 01 1997 or Mar 27 2002)YYYYMMDD (19930701 or 20020327) - Numeric formatMmmmm D, YYYY (July 1, 1997 or March 27, 2002)Where:SyntaxYYYYMeaningYYYY is a four-digit year. [YY]YY is a two-digit year if datetime falls withinthe active window for two-digit dates; otherwise it is a four-digit number.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 357

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

Saved successfully!

Ooh no, something went wrong!