Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 796
Chapter 2 Program Instructions
FORMAT DATE$
Field of Application
Statement for specifying the format of the string returned by
DATE$("F") and DATEADD$(..... ,"F") instructions.
Syntax FORMAT DATE$<sexp>
<sexp> is a string representing the order between year, month and
date plus possible separating characters.
“Y” represents Year (one digit per Y).
“M” represents Month (one digit per M).
“D” represents Day (one digit per D).
Default: YYMMDD
Reset to default by: Empty string ("")
Remarks
DATE$ and DATEADD$ will only return formatted dates if these functionss
include the fl ag "F".
In the FORMAT DATE$ statement, each Y, M or D character generates one
digit from the number of the year, month or day respectively, starting from the
end. If the number of Y's exceeds 4, or the number of M's or D's exceeds 2, the
exceeding characters generate leading space characters.
Examples (the year is 2001):
Y generates 1
YY generates 01
YYY generates 001
YYYY generates 2001
YYYYY generates
↔
2001 (
↔
represents a space)
Separating characters are returned as entered in the string. Any character
except Y, M, or D are regarded as separators.
The date format is saved in the temporary memory and has to be transmitted
to the printer after each power-up.
Examples
Changing the date format according to British standard:
FORMAT DATE$ "DD/MM/YY"
Changing date format back to default (YYMMDD):
FORMAT DATE$ ""
Changing the date format to Swedish standard:
FORMAT DATE$ "YY-MM-DD"