46UBI EasyCoder 301 Direct Protocol – Programmer's Guide Ed. 1Chapter 6 Setting Up the PrinterThe formats for printing dates and time in connection with the com-mands DATE$("F"), DATEADD$("F"), TIME$("F") andTIMEADD$("F") (see chapter 6.5) can be specified by the com-mands FORMAT DATE$ and FORMAT TIME$. With both these com-mands, you should enter characters representing the various typesof information. The order and number of the characters decides theformat. You can also include separating characters like periods,slashes, colons, etc. Note that the input string must be enclosed bydouble quotation marks.FORMAT DATE$ ""Y YearM MonthD DayDefault: YYMMDDExamples:FORMAT DATE$ "YYYY.MM.DD" ↵ gives e.g.1997.06.01FORMAT DATE$ "DD/MM/YY" ↵ gives e.g.01/06/95FORMAT TIME$ ""H Hour in 24-hour cycle (one digit per H; right-justified)h Hour in 12-hour cycle (one digit per h; right-justified)M Minute (one digit per M; right-justified)S Second (one digit per S; right-justified)P AM/PM (uppercase) in 12-hour cycle (onecharacter per P; left-justified)p am/pm (lowercase) in 12-hour cycle (onecharacter per p; left-justified)Default: HHMMSSExamples:FORMAT TIME$ "HH:MM:SS" ↵ gives e.g.14:15:37FORMAT TIME$ "HH.MM" ↵ gives e.g.14.15FORMAT TIME$ "hh.MM.SS p" ↵ gives e.g.2.15.37 pFORMAT TIME$ "hh.MM PP" ↵ gives e.g.2.15 PM4. Date and TimeFormatThe date and time formats aswell as the names of months andweekdays are not saved in theprinter's battery backed-upmemory, but must be transmittedto the printer after each power-up.