SAP NetWeaver AS ABAP Release 752, ©Copyright 2017 SAP AG. All rights reserved.
ABAP - Keyword Documentation → ABAP - Reference → Language Environment → Formatting Settings → Country-Specific Formats →Date Formats
The date format is specified by column DATFM in the database table T005X, where "mm", "dd", and "yyyy" stand for day, month, and year. The following country-specific formats are available:
| DATFM | Date Format |
| "1" | dd.mm.yyyy |
| "2" | mm/dd/yyyy |
| "3" | mm-dd-yyyy |
| "4" | yyyy.mm.dd |
| "5" | yyyy/mm/dd |
| "6" | yyyy-mm-dd |
| "7" | ggyy.mm.dd, Japanese date |
| "8" | ggyy/mm/dd, Japanese date |
| "9" | ggyy-mm-dd, Japanese date |
| "A" | yyyy/mm/dd, Islamic date 1 |
| "B" | yyyy/mm/dd, Islamic date 2 |
| "C" | yyyy/mm/dd, Iranian date |
Example
Produces a date with different date formats.
cl_demo_output=>display(
|{ sy-datlo COUNTRY = 'DE ' }\n{ sy-datlo COUNTRY = 'US ' }| ).
Example
To see the display of the current date in all possible formats, see the associated executable example with character string templates.