SmallBASIC syntax groups: 

Date function DATEFMT

20  DATEFMT (format, dmy| (d,m,y)| julian_date)
Returns formatted date string.

See examples

If there is insufficient information on this page and you wish learn more about DATEFMT, please send an email to You can help to improve information about DATEFMT by submitting an article using the comments link below. Note, an offline language reference text file is now avialable – see the Download section.


D one or two digits of Day
DD 2-digit day
DDD 3-char day name
DDDD full day name
M 1 or 2 digits of month
MM 2-digit month
MMM 3-char month name
MMMM full month name
YY 2-digit year (2K)
YYYY 4-digit year

PRINT DATEFMT("ddd dd, mm/yy", "23/11/2001")
REM prints "Fri 23, 11/01"