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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
AJerbi
Partner - Contributor II
Partner - Contributor II

Date conversion

Hello Community ,

I have these two date fileds formats that i want to convert to a DD/MM/YYYY format 

2022-05-19T20:45:49.611956+04:00

27-SEP-21 12.00.00.000000000 AM

Can you please help ?

 

Labels (1)
1 Solution

Accepted Solutions
sidhiq91
Specialist II
Specialist II

@AJerbi  Please see below codes that is used in the backend:

NoConcatenate
Temp:
Load date(left(Date,10),'DD/MM/YYYY') as Date
Inline [
Date
2022-05-19T20:45:49.611956+04:00
];

NoConcatenate
Temp1:
Load Date(date#(left(Date,9),'DD-MMM-YY'),'DD/MM/YYYY') as Date1
Inline [
Date
27-SEP-21 12.00.00.000000000 AM
];

Exit Script;

View solution in original post

2 Replies
deepanshuSh
Creator III
Creator III

For, first you can directly use this, or use left here as well to truncate the data. =date(Date,'DD/MM/YYYY') and for second use combination of left and date # combination =date(date#(left(Date1,9), 'DD-MMM-YY'),'DD/MM/YYYY')

Trial and error is the key to get unexpected results.
sidhiq91
Specialist II
Specialist II

@AJerbi  Please see below codes that is used in the backend:

NoConcatenate
Temp:
Load date(left(Date,10),'DD/MM/YYYY') as Date
Inline [
Date
2022-05-19T20:45:49.611956+04:00
];

NoConcatenate
Temp1:
Load Date(date#(left(Date,9),'DD-MMM-YY'),'DD/MM/YYYY') as Date1
Inline [
Date
27-SEP-21 12.00.00.000000000 AM
];

Exit Script;