Skip to content

Commit 5ba53df

Browse files
authored
Update 576-date-datefmt.markdown
1 parent 9aa760d commit 5ba53df

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

_build/reference/576-date-datefmt.markdown

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# DATEFMT
22

3-
> DATEFMT (format, dmy| (d,m,y)| julian_date)
3+
> s = DATEFMT (format, dmy| (d,m,y)| julian_date)
44
5-
Returns formatted date string.
5+
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:
66

77
| Format | Desription |
88
|--------| -------------------------|
@@ -19,8 +19,12 @@ Returns formatted date string.
1919

2020
See also DATE and DATEDMY.
2121

22+
### Example
23+
2224
```
23-
PRINT DATEFMT("ddd dd, mm/yy", "23/11/2001")
24-
REM prints "Fri 23, 11/01"
25+
PRINT DATEFMT("ddd dd, mm/yy", 23, 11, 2001) ' Output: Fri 23, 11/01
26+
PRINT DATEFMT("mm.dd.yy" , "23/11/2001") ' Output: 11.23.01
27+
PRINT DATEFMT("dd.mm.yyyy" , DATE) ' Output: 19.10.2023
28+
PRINT DATEFMT("dddd" , JULIAN("23/11/2001")) ' Output: Friday
2529
```
2630

0 commit comments

Comments
 (0)