Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Daniel77
Creator
Creator

Convert Date format

Hi,

 

I am familiar with converting dates but have a different format i have not see which i need to convert, i have tried the following but unsuccessfully.

 

Timestamp(Date#( 'YYYY-MM-DDThh:mm:ss.sss'), 'MM/DD/YYYY hh:mm:ss TT') as [OrderDate],

 

 

Can anyone assist with converting 

2022-11-12T10:58:46.193

to 

2/23/2023 12:10:36 AM

 

Thank you

Daniel

 

Labels (2)
11 Replies
Daniel77
Creator
Creator
Author

Hi,

Since i noted your reply was with inline load i figure it must be right. The load from the JSON API was the issue as i was adding the script to the ORANGE Text (qlik script) and not the SQL loaded data. I could not figure that out but, when i add your conversion to the dimension it worked perfectly so happy this is working.

Thank you again Brun for your valuable time and expertise in helping the needy 🙂

 

Many Thanks

Daniel

Daniel77
Creator
Creator
Author

Thank you for your reply Chanty,

I think the load was the issue as the same conversion of date proposed by Brun worked in Dimension but not in Script. Just wanted to say i really appreciate your input and thank you so much for taking the time to assist.

Daniel