Dates
Format a date.
Format a date into the desired pattern.
Parameters
| Name | Description | Accepted Values | Default | Required |
|---|---|---|---|---|
| I/O | ||||
input | Name of the input column. | string, integer, array | — | Yes |
output | Name of the output column. | string, array, null | null | No |
| Formatting | ||||
format | String pattern to format date. | string | — | Yes |
| Conditions | ||||
if | Condition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}. | string | — | No |
where | Filter rows before applying the wrangle using SQL-like criteria, such as column1 = 123 OR column2 = 'abc'. | string | — | No |
where_params | Values 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
| Requirement | Value |
|---|---|
| AI-powered | No |
| Requires WrangleWorks account | No |
| Requires subscription | No |
| Requires external API key | No |
Technical details
| Field | Value |
|---|---|
| Catalog ID | 31 |
| Catalog key | format.dates |
| Recipe key | format.dates |
| Catalog status | active |
| Lifecycle status | active |
| Recipe Writer eligible | Yes |
| Namespace | format |
| Documentation group | format |
| Aliases | None |
| Runtime symbol | wrangles.recipe_wrangles.format.dates |
| Legacy UUID | a3c15135-4f7a-4659-83fd-f657afa603c9 |
Sources