Change date format
Operation possible on parts, assemblies or drawings.
This operation modifies the format of a date property.
Example :
Modify the format of the '' propertyDateVerification'' using the format ''dd/MM/yyyyy''. If the date is January 18, 2017 then the property ''.DateVerificationwill have the value ''18/01/2017''.
You can choose a format from the drop-down list:
Or enter the custom format directly. The following table shows the characters you can use:
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 Friday, January 18, 2017.
Format |
Poster |
dd-MM-yy |
18-01-17 |
dd/MM/yy |
18/01/17 |
M/d/yy |
01/18/17 |
d MMM yy |
Jan. 18, 17 |
d MMMM yyyyy |
January 18, 2017 |