Parses the strings in the selected columns and converts them into Date&Time cells. The expected format can be selected from a number of commonly used formats or specified manually (see section "Type and Format Selection").
Since dates may contain localized terms such as month or weekday names, you can additionally specify a locale.
A template ("format string") that specifies how to interpret the input. This template may contain placeholders for different descriptions of month names, weekday names, month and day numbers, year numbers etc., as well as other non-alphabetic characters that are expected to appear in the input string.
Commonly used placeholders are y
for year, M
for month,
d
for day of month, H
for hours, m
for minutes and s
for
seconds. A full list of placeholders can be found below.
The count of an individual placeholder letter defines the expected format. For example, a weekday can be represented by its full name ("Monday"), a short name ("Mon") or a narrow name ("M"). Commonly used expressions are:
yyyy
matches "2021". yy
matches years relative to the year 2000:
"21" will be interpreted as "2021".
MM
matches month numbers like "01",
MMM
matches short month names like "Jan", MMMM
matches full month
names like "January".
d
matches day numbers like "5" and "05".
Examples:
yyyy.MM.dd HH:mm:ss.SSS
parses dates like "2001.07.04
12:08:56.000"
yyyy-MM-dd'T'HH:mm:ss.SSSZ
parses dates like
"2001-07-04T12:08:56.235-0700"
yyyy-MM-dd'T'HH:mm:ss.SSSXXX'['VV']'
parses dates like
"2001-07-04T12:08:56.235+02:00[Europe/Berlin]"
Placeholders can be declared as optional by wrapping them in square brackets. This is useful if it is unclear whether the input contains a certain field or not. For example:
HH:mm:ss[.SSS]
parses times like "12:08:56.123" and
"12:08:56"
yyyy-MM-dd'T'HH:mm[:ss[.SSS]]
parses dates like
"2001-07-04T12:08:56.235", "2001-07-04T12:08:56" and
"2001-07-04T12:08"
Optional placeholders can also be useful if different formats are to be expected. For example,
[MMMM][MMM] dd, yyyy
matches both "April 02, 2021" and "Apr 02, 2021". Note that
this will also match when no month description is given whatsoever.
The full list of supported placeholders is given below. You can find a full, technical specification here.
G
: erau
: yeary
: year of eraD
: day of yearM
: month in year (context sensitive)L
: month in year (standalone form)d
: day of monthQ
: quarter of yearq
: quarter of yearY
: week based yearw
: week of week based yearW
: week of monthE
: day of weeke
: localized day of weekc
: localized day of weekF
: week of montha
: am/pm of dayh
: clock hour of am/pm (1-12)K
: hour of am/pm (0-11)k
: clock hour of am/pm (1-24)H
: hour of day (0-23)m
: minute of hours
: second of minuteS
: fraction of secondA
: milli of dayn
: nano of secondN
: nano of secondV
: time zone IDz
: time zone nameO
: localized zone offsetX
: zone offset (Z
for zero)x
: zone offsetZ
: zone offsetp
: pad next'
: escape for text''
: single quote[
: optional section start]
: optional section endYou want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.
To use this node in KNIME, install the extension KNIME Base nodes from the below update site following our NodePit Product and Node Installation Guide:
A zipped version of the software site can be downloaded here.
Deploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.