Type date
This field is used to specify the writing format for type'' properties. Date''. When the user is asked to select a day in a calendar, we can say that the first day of the week begins with ''Monday'', that the ''first week of the year'' is the ''First full week'' and that the date value will follow the format defined by ''. Date format''.
A custom date format can be defined:
Characters |
Description |
d |
Displays the day as a number without significant zero (example 1). Use %d if this is the only character in the user-defined numeric format. |
dd |
Displays the day as a number with a leading zero (example 01). |
ddd |
Displays the day as an abbreviation (e.g. Mon.) |
dddd |
Displays the day as an abbreviation (e.g. Monday) |
M |
Displays the month as a number with no significant zero (e.g. January corresponds to 1). Use %M if this is the only character in the user-defined numeric format. |
MM |
Displays the month as a number with a leading zero (e.g. January corresponds to 01). |
MMM |
Displays the month as an abbreviation (e.g. January corresponds to Jan.) |
MMMM |
Displays month as full month name (e.g. January) |
y |
Displays the year in numeric format without leading zeros (e.g. 0-9). Use %Y if this is the only character in the user-defined numeric format. |
yy |
Displays the year in two-digit numeric format, with a leading zero where appropriate (e.g. January corresponds to 01). |
yyy |
Not available |
yyyy |
Displays the year in four-digit numeric format |
Be case-sensitive (upper/lower case) and use the separators of your choice.
Here are some examples of user-defined date formats for the thursday, october 18, 2012.
Format |
Poster |
dd-MM-yy |
18-10-12 |
dd/MM/yy |
18/10/12 |
M/d/yy |
10/18/12 |
d MMM yy |
Oct. 18, 12 |
d MMMM yyyyy |
October 18, 2012 |