17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

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.

FORMAT DATE$<br />

Chapter 2 Program Instructions<br />

Field of Application Statement for specifying the format of the string returned by DATE$("F")<br />

and DATEADD$(..... ,"F") instructions.<br />

Syntax FORMAT DATE$<br />

is a string representing the order between year, month and<br />

date plus possible separating characters.<br />

“Y“ represents Year (one digit per Y)<br />

“M” represents Month (one digit per M)<br />

“D” represents Day (one digit per D)<br />

Default: YYMMDD<br />

Reset to default by: Empty string ("")<br />

Remarks DATE$ and DATEADD$ will only return formatted dates if these functionss<br />

include the flag "F".<br />

In the FORMAT DATE$ statement, each Y, M or D character generates one<br />

digit from the number of the year, month or day respectively, starting from<br />

the end. If the number of Y:s exceeds 4, or the number of M.s or D:s exceeds<br />

2, the exceeding characters generate leading space characters.<br />

Examples (the year is 1999):<br />

Y generates 9<br />

YY generates 99<br />

YYY generates 999<br />

YYYY generates 1999<br />

YYYYY generates _1999 (_ represents a space character)<br />

Separating characters are returned as entered in the string. Any character but<br />

Y, M, or D are regarded as separators.<br />

The date format is saved in the temporary memory and has to be transmitted<br />

to the printer after each power-up.<br />

Examples Changing the date format according to British standard:<br />

FORMAT DATE$ "DD/MM/YY"<br />

Changing date format back to default (YYMMDD):<br />

FORMAT DATE$ ""<br />

Changing the date format to Swedish standard:<br />

FORMAT DATE$ "YY-MM-DD"<br />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 84

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

Saved successfully!

Ooh no, something went wrong!