Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Sai-Nirant
Contributor II
Contributor II

I require this date format Thrusday,January 20,2022 to DD/MM/YYYY

Date
Thrusday,January 20,2022
Monday,April 02,2022
Saturday,June 10,2023
Friday,July 15,2021
Sunday,December 18,2022
Tuesday,October 21,2021

Labels (1)
6 Replies
LRuCelver
Partner - Creator III
Partner - Creator III

Data:
NoConcatenate Load
	Date(MakeDate(Year, Month, Day), 'DD/MM/YYYY') as Date;
Load
	Year,
    Num(Month(Date#(Left(SubField(MonthDay, ' ', 1), 3), 'MMM'))) as Month,
	Num(SubField(MonthDay, ' ', 2)) as Day;
Load
	SubField(Date, ',', 2) as MonthDay,
    Num(SubField(Date, ',', 3)) as Year
Inline [
    Date
    "Thursday,January 20,2022"
    "Monday,April 02,2022"
    "Saturday,June 10,2023"
    "Friday,July 15,2021"
    "Sunday,December 18,2022"
    "Tuesday,October 21,2021"
];
Anil_Babu_Samineni

@Sai-Nirant  Perhaps like this way.

=Date(Date#(DateFormat, 'WWWW,MMMM DD, YYYY'), 'DD/MM/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
Sai-Nirant
Contributor II
Contributor II
Author

Its working thank you so much Clever.

Sai-Nirant
Contributor II
Contributor II
Author

I already tried this way but it's not working. Anyway, thanks for your reply, Anil.

qv_testing
Specialist II
Specialist II

Try this..

LOAD *, Date(Date#(Date1,'MMMM DD,YYYY'),'MM/DD/YYYY') as [Require Date];
LOAD *, SubField(Date, 'y,', 2) as Date1;
LOAD * inline [
Date
"Thrusday,January 20,2022"
"Monday,April 02,2022"
"Saturday,June 10,2023"
"Friday,July 15,2021"
"Sunday,December 18,2022"
"Tuesday,October 21,2021"
];

qv_testing_0-1707281540421.png

 

vinieme12
Champion III
Champion III

you can do this in one pass

date(Date#(subfield(Date,',',2)&subfield(Date,',',3),'MMMM DDYYYY'),'DD/MM/YYYY') as FormattedDate

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.