Skip to main content

Dates

Format a date.

Format a date into the desired pattern.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName of the input column.string, integer, array—Yes
outputName of the output column.string, array, nullnullNo
Formatting
formatString pattern to format date.string—Yes
Conditions
ifCondition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}.string—No
whereFilter rows before applying the wrangle using SQL-like criteria, such as column1 = 123 OR column2 = 'abc'.string—No
where_paramsValues used with where for parameterized criteria. Uses SQLite placeholder syntax such as ? or :name.array, object—No

Examples​

wrangles:
- format.dates:
input: Date
output: Output Format
format: '%Y-%m-%d' # must be wrapped by quotes " or '
Date
6/23/1912
Output Format
1912-06-23
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID31
Catalog keyformat.dates
Recipe keyformat.dates
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceformat
Documentation groupformat
AliasesNone
Runtime symbolwrangles.recipe_wrangles.format.dates
Legacy UUIDa3c15135-4f7a-4659-83fd-f657afa603c9

Sources