Date format (
date_format) is a configuration for setting the date format.
This configuration is one of the general configurations available for various widgets,
especially post widgets. By default, the date format used is relative to the theme language,
DD MMMMM YYYY for Bahasa Indonesia and
MM-DD-YYYY for English.
List of Keywords:
| Keyword |
Description |
Example Output |
| D |
Day |
1, 4, 10, 20, 31 |
| DD |
Day in 2 digits |
01, 04, 10, 20, 31 |
| M |
Month in number |
1, 4, 10, 12 |
| MM |
Month in 2-digit number |
01, 04, 10, 12 |
| MMMM |
Month name |
January, April, October, December |
| YY |
Year in 2 digits |
22 (for the year 2022) |
| YYYY |
Year in 4 digits |
2022 |
| h |
Hour in 1 digit |
7 |
| hh |
Hour in 2 digits |
07 |
| m |
Minute in 1 digit |
7 |
| mm |
Minute in 2 digits |
07 |
Example Formatting:
| Format |
Result |
| D/M/YYYY |
1/9/2022 |
| DD-MM-YYYY |
01-09-2022 |
| DD MMMM YYYY |
01 September 2022 |
| D/M/YYYY hh:mm |
1/9/2022 13:45 |