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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
sbxr
Contributor III
Contributor III

Change a string to Date format

Hi ,

 

I have a Data which has a column Transaction date which is in string how can I change it to Date type and in the below output format.

Input format --MM/dd/yyyy hh:mm

Transaction_Date

1/2/2009 6:17 AM
1/2/2009 4:53 AM

 

Output:format -- dd-MM-yyyy HH:mm

Transaction_Date

2-01-2009 6:17 AM
2-01-2009 4:53 AM

 

Thanks

Labels (1)
  • v7.x

1 Solution

Accepted Solutions
Anonymous
Not applicable

Thank you for answer! I had the same issue!

 

My best wishes: https://diceus.com/offshore-software-development-benefits/

View solution in original post

2 Replies
ashif2
Creator II
Creator II

Hi sbxr,

 

Here is the expression to parse the string which you have mentioned.

 

TalendDate.parseDate("dd/MM/yyyy hh:mm aa",row1.Transaction_Date)

 

0683p000009M1pE.jpg

 

Anonymous
Not applicable

Thank you for answer! I had the same issue!

 

My best wishes: https://diceus.com/offshore-software-development-benefits/