Clocks Object Formats
The table below lists the valid date formats for datetime objects.
Date Format Character Description
W Week number of the year. Weeks start on Monday (1-53).
'N' Day number of the week as a single numeric character (1-7).
'NN' Day number of the week as 2 numeric characters (01-07).
'NO' Day of the week as a single alpha character (A-G).
'ND' Three letter abbreviated name of the day.
Example: MON, TUE, WED etc.
'JJJ' Day number of the year as a 3 numeric characters (001-365).
Example: January 1st = 001, February 1st = 032 etc.
'y' The year as a single digit.
Example: 2025 = 5, 2030 = 0 etc.
'M' The name of the month as a single alpha numeric character.
Example:
•
January = 1
•
• February = 2•
•
March = 3
•
•
April = 4
•
•
May = 5
•
• June = 6
•
•
July = 7
•
• August = 8•
•
September = 9
•
•
October = O
•
• November = N•
•
December = D
•
dddd The name of the day.
Example: Monday, Tuesday Wednesday etc.
D Day number of the month with no leading zero (1-31).
DD Day number of the the month with leading zero (01-31).
MM Month number of the year with leading zero (01-12).
MMM The abbreviated name of the month.
Example: Jan, Feb, Mar etc.
MMMM The name of the month.
Example: January, February, March etc.
YY The year as a two digit number (00-99).
OPERATION
140 EPT077343 EN - Issue 1 - 11 November 2022