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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
QlikEnth
Contributor II
Contributor II

Date Format

Hello Experts,

i can achieve the Date Format from the Column with the Date Sets Like "Mon Dec 31 02:00:00 EST 2018" Using the Right and  Left Functions and get the Date Format as '12/31/2018' or '12-31-2018', But is there any simple way than the Complex Way ?

 

Thanks.

Labels (1)
1 Solution

Accepted Solutions
Anil_Babu_Samineni

Since there is some string between the format like EDT, EST etc. I can think Subfield can deserve

=Date(Date#(SubField(Field, ' ', 3) &'/'& SubField(Field, ' ', 2)&'/'&SubField(Field, ' ', -1), 'DD/MMM/YYYY'))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

4 Replies
Anil_Babu_Samineni

Please provide more rows how data looks like?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
QlikEnth
Contributor II
Contributor II
Author

Column Data Looks Like Below, just need the Date Format

Fri Mar 06 15:00:00 EST 2015
Fri Mar 06 15:00:00 EST 2015
Fri Mar 06 10:00:00 EST 2015
Fri Mar 06 10:00:00 EST 2015
Mon Mar 09 15:00:00 EDT 2015
Mon Mar 09 17:00:00 EDT 2015
Mon Mar 09 17:00:00 EDT 2015

 

Anil_Babu_Samineni

Since there is some string between the format like EDT, EST etc. I can think Subfield can deserve

=Date(Date#(SubField(Field, ' ', 3) &'/'& SubField(Field, ' ', 2)&'/'&SubField(Field, ' ', -1), 'DD/MMM/YYYY'))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
QlikEnth
Contributor II
Contributor II
Author

Thanks Anil,

 

This Worked as Expected