2022.2

Table Of Contents
Building Currency values
CurrencyvaluescanbetheresultofdirectattributionormathematicaloperationsjustlikeIntegerval-
ues(see"Integer"onpage281).
Date
Datesarevaluesthatrepresentaspecificpointintime,preciseuptothesecond.Theycanalsobe
referredtoasdatetimevalues.WhiledatesaredisplayedasUTC(CoordinatedUniversalTime)or
usingthesystem'sregionalsettings(see"DefaultFormat"onpage786),inrealitytheyarestored
unformatted.
Note: TheDatepropertyisstoredintheConnectdatabasewithzerotimezoneoffset,which
makesitpossibletoconvertthetimecorrectlyinanylocation.PlanetPressWorkflow,however,
showsthedate/timeasitisstoredinthedatabase(with0timezoneoffset).Thisisexpected
behaviorandthezoneoffsetmustbecalculatedmanuallyinPlanetPressWorkflow.
Extracting dates
ToextractdataandhavethatdatainterpretedasaDate,setthetypeoftherespectivefieldtoDate:
1. Selectthefieldinthedatamodel.
2. OntheStep propertiespane,underField Definition,specifytheTypeasDate.
3. Makesurethatthedateinthedatasourceisformattedinawaythatmatchestheexpectationsof
theDataMapper.Ifthedatedoesn'tmatchtheformatthattheDataMapperexpects,itcannotbe
interpretedasadate.Forexample,ifadateinthedatasourceisformattedas"yyyy-mm-dd"but
theDataMapperexpectsatimeaswell,thedatecannotbereadandtheDataMapperwillstop
withanerror.
Theexpecteddateformatcanbesetinthreeplaces:
l
Intheuserpreferences("DataMapperpreferences"onpage786).
l
Inthedatasourcesettings("Datasourcesettings"onpage223).
l
Inthefieldproperties:ontheStep propertiespane,underData Format,specifythe
Date/Time Format.
4. Forthelettersandpatternsthatyoucanuseinadateformat,see"Definingadate/timeformat"
onthenextpage.
DataformatsettingstelltheDataMapperhowtoreadandparsedatafrom the data source.
Theydon'tdeterminehowthesedataareformattedintheDataModelorinatemplate.Inthe
DataModel,dataareconvertedtothenativedatatype.Dates,forexample,areconvertedtoa
Page 278