Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
ssarma1625980935
Contributor
Contributor

Convert date to Timestamp

Hi All,

I have 10 date fields whose values like:

Column_A = 7/23/2021

Col_B=08/23/2021

Col_C= 08/23/2021 11:23:37 AM

All I am trying to do is, send these date columns from one (Oracle) input table which has string data type to (Oracle) target table which has TIMESTAMP data types.

For the fields Column_A, Col_B it has to put Timestamp automatically as 00:00:00

 

 

Please guide me, how can I do it.

Thanks in advance.

1 Reply
Anonymous
Not applicable

Hi

Read the source data with string type and convert it to Date type on tMap, set the date pattern of output column as "MM/dd/yyyy HH:mm:ss" and set the expression like this:

TalendDate.parseDate("MM/dd/yyyy",row1.Col_B)

 

Regards

Shong