Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

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.

ExampleFormat StringDescription
2013-06-21T12:22:06.376144YYYY-MM-DDTHH:mm:ss.SSSISO 8601 format with date and time including microseconds
2013-06-21T12:22:06YYYY-MM-DDTHH:mm:ssISO 8601 format with date and time
2013-06-21YYYY-MM-DDISO 8601 format with date only

Reference

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.%%
  • No labels