DATEFMT
s = DATEFMT (format, dmy| (d,m,y)| julian_date)
Returns a formatted date string. The input date can be given as a
date-string returned by DATE, as the integers d
for day,
m
for month and y
for year, or as a julian
date. format
is a string specifying the format of the
date:
Format | Desription |
---|---|
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 |
See also DATE and DATEDMY.
Example
PRINT DATEFMT("ddd dd, mm/yy", 23, 11, 2001) ' Output: Fri 23, 11/01
PRINT DATEFMT("mm.dd.yy" , "23/11/2001") ' Output: 11.23.01
PRINT DATEFMT("dd.mm.yyyy" , DATE) ' Output: 19.10.2023
PRINT DATEFMT("dddd" , JULIAN("23/11/2001")) ' Output: Friday
Date
If there is insufficient information on this page and you wish learn more about DATEFMT,
please send an email to smallbasic@gmail.com. You can help to improve information about
DATEFMT by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.