Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Both for formatting as well as parsing date, date formats are specified using a date format string. These consist of various tokens that indicate where a certain part of the date is to be placed or expected.

Note: for the "input_format_string" used in the facets.json file for Dataloaders (see Data Loader Facet Config Reference) the python date format is used. See http://strftime.org/ for reference on the supported directives). This also applies to the "Time format" option exposed as part of the "Map to facets" step when adding Data Sources from the UI (e.g. for Excel, CSV, ...)

Common Format Strings

The following table lists common format strings which are often used in data integration projects.

...

The following table lists all supported directives which can be used in format strings. The example column is based on the sample string 2013-06-24T15:21:56.087821.

...

DirectiveMeaningExample
MMMonth as a decimal number [01,12].06
MMMLocale’s abbreviated month name.Jun
MMMMLocale’s full month name.June
DDDay of the month as a decimal number [01,31].24
DDDDDay of the year as a decimal number [001,366].175
dWeekday as a decimal number [0(Sunday),6].1
dddLocale’s abbreviated weekday name.Mon
ddddLocale’s full weekday name.Monday
YYYear without century as a decimal number [00,99].13
YYYYYear with century as a decimal number.2013
ALocale’s equivalent of either AM or PM.PM
HHHour (24-hour clock) as a decimal number [00,23].15
hhHour (12-hour clock) as a decimal number [01,12].03
mmMinute as a decimal number [00,59].21
ssSecond as a decimal number [00,61].56
SSSMicrosecond as a decimal number [0,999999], zero-padded on the left.087821
%%A literal ‘%’ character.%%

...