!C6:
Description
Returns the current date and time according to the setting of your printer.
Syntax
FORMAT$(expression [, style$] )
Parameter Description
expression Required. Any valid expression.
style$ Optional. A valid named or user-defined format string expression.
Predefined date/time format
Uses the Long Date format.
Uses the Short Date format.
te, second, and "AM" or "PM" using the h:mm:ss format.
Shows the hour, minute, and "AM" or "PM" using the "hh:mm AM/PM" format.
Shows the hour and minute using the hh:mm format.
defined date/time formats
play the date as ddddd and display the time as ttttt, in that order.
Display the day as a number without a leading zero (1
Display the day as a number with a leading zero (01
Display the day as an abbreviation (Sun
isplay the day as a full name (Sunday
Display a date serial number as a complete date (including day, month, and year), formatted according to your
system's short date format setting. The default short date format is m/d/yyyy.
dddddd
isplay the date as a complete date (including day, month, and year),
according to the long date
setting recognized by your system. The default long date format is dddd, mmmm dd, yyyy.
Display the day of the week as a number (1 for Sunday thro
Display the week of the year as a number (1
Display the month as a number without a leading zero (1
12). If m immediately follows h or hh, the minute rather
than the month is displayed.
mm
Display the month as a number
12). If mm immediately follows h or hh, the minute rather
than the month is displayed.
Display the month as an abbreviation (Jan
Display the month as a full month name (January
er of the year as a number (1
Display the day of the year as a number (1
Display the hour as a number without leading zeros (0
Display the hour as a number with leading zeros (00
Display the minute as a number without leading zeros (0
Display the minute as a number with leading zeros (00
Display the second as a number without leading zeros
Display the second as a number with leading zeros (00
Display a time as a complete time (including hour, minute, and second). The default time format is h:mm:ss
Display an uppercase AM with any hour before noon; d
isplay an uppercase PM with any hour between noon and
Display a lowercase AM with any hour before noon; display a lowercase PM with any hour between noon and
Display an uppercase A with any hour before noon; display an upp
ercase P with any hour between noon and
Display a lowercase A with any hour before noon;
display a lowercase P with any hour between noon and 11:59
AMPM can be either uppercase or lowercase, but the case of the string displayed m
atches the string as defined
Display the next character in the format string.
Display the string inside the double quotation marks.
Note: It is supported in firmware V6.81EZ or later.