2022.2

Table Of Contents
DateTimeobject.HowtheyaredisplayedintheDataModeldependsonthepreferences(see
"DefaultFormat"onpage786)..
Defining a date/time format
Adateformatisamaskrepresentingtheorderandmeaningofeachdigitintherawdata,aswellasthe
date/timeseparators.Themaskusesseveralpredefinedmarkerstoparsethecontentsoftherawdata.
HereisalistofmarkersthatareavailableintheDataMapper:
l
yy:NumericrepresentationoftheYearwhenitiswrittenoutwithonly2digits(i.e.13)
l
yyyy:NumericrepresentationoftheYearwhenitiswrittenoutwith4digits(i.e.2013)
l
M:Shortversionofthemonthname(i.e.Jan,Aug).Thesevaluesarebasedonthecurrent
regionalsettings.
l
MM:Longversionofthemonthname(i.e.January,August).Thesevaluesarebasedonthecur-
rentregionalsettings.
l
mm:Numericrepresentationofthemonth(i.e.1,09,12)
l
D:Shortversionoftheweekdayname(i.e.Mon,Wed).Thesevaluesarebasedonthecurrent
regionalsettings.
l
DD:Longversionoftheweekdayname(i.e.Monday,Wednesday).Thesevaluesarebasedon
thecurrentregionalsettings.
l
dd:Numericrepresentationofthedayofthemonth(i.e.1,09,22)
l
hh:Numericrepresentationofthehours
l
nn:Numericrepresentationoftheminutes
l
ss:Numericrepresentationoftheseconds
l
ms:Numericrepresentationofthemilliseconds.
l
ap:AM/PMstring.
l
x:Indicatesatimezoneintheformof+05
l
xx:Indicatesatimezoneintheformof+0500
l
xxx:Indicatesatimezoneintheformof+05:00
l
Inaddition,anyconstantcharactercanbeincludedinthemask,usuallytoindicatedate/timesep-
arators(i.e./ - :).Ifoneofthosecharactershappenstobeoneofthereservedcharacterslisted
above,itmustbeescapedusingthe\symbol.
Note: Themarkersthatcanbeusedwhenextractingdatesaredifferentfromthosethatare
usedtodisplaydatesinatemplate(seetheDesigner's"Dateandtimepatterns"onpage1180).
Page 279