Skip to main content
info
This documentation is for version v2.5 of the product.
For the latest version(v2.7) documentation click here
Version: v2.5 print this page

StringToDate

This node converts a string column to date using the given date/time format

Type

transform

Fields

NameTitleDescription
inputColNameInput Column NameInput Column Name
inputColFormatInput Column FormatInput Column Format. eg: yyyy-MM-dd yyyy-MM-dd HH:mm:ss
outputColNameOutput Column NameOutput Column Name
outputColTypeOutput Column TypeOutput Column Type

Examples -------

Format Examples

dd-MM-yy : 31-01-12 dd-MM-yyyy : 31-01-2012 MM-dd-yyyy : 01-31-2012 yyyy-MM-dd : 2012-01-31 yyyy-MM-dd HH:mm:ss : 2012-01-31 23:59:59 yyyy-MM-dd HH:mm:ss.SSS : 2012-01-31 23:59:59.999 yyyy-MM-dd HH:mm:ss.SSSZ : 2012-01-31 23:59:59.999+0100 EEEEE MMMMM yyyy HH:mm:ss.SSSZ : Saturday November 2012 10:45:42.720+0100

OUTPUT COLUMN NAME: - If user inputs an existing column name, it overrides the column
otherwise it will add a new column.

Input

iddate_stringdate_string1
02011-1-1 00:00:00.005/26/2016 01:01:01
12012-1-14 01:00:00.006/22/2017 01:00:00
22013-12-10 02:00:00.001/12/2016 01:01:01

Parameters1 ----------

NameValue
Input Column Namedate_string1
Input Column FormatMM/dd/yyyy HH:mm:ss
Output Column Namedate
Output Column TypeDate

Output1

iddate_stringdate_string1date
02011-1-1 00:00:00.005/26/2016 01:01:012016-05-26
12012-1-14 01:00:00.006/22/2017 01:00:002017-06-22
22013-12-10 02:00:00.001/12/2016 01:01:012016-01-12

Parameters2

NameValue
Input Column Namedate_string1
Input Column FormatMM/dd/yyyy HH:mm:ss
Output Column Namedate
Output Column TypeTimeStamp

Output2

iddate_stringdate_string1date_timestamp
02011-1-1 00:00:00.005/26/2016 01:01:012016-05-26 01:01:01.0
12012-1-14 01:00:00.006/22/2017 01:00:002017-06-22 01:00:00.0
22013-12-10 02:00:00.001/12/2016 01:01:012016-01-12 01:01:01.0