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: 
Not applicable

Weekday and Day calc

I am getting Monthyear as below ..how can I manipulate this to get the week, weekday and date also ?

     Date(Date#(Trim(SubField(Header, Chr(10), 1)), 'MMM-YY'), 'MMM-YY') as MonthYear,

Thanks much.

3 Replies
Gysbert_Wassenaar

Week(Date#(Trim(SubField(Header, Chr(10), 1)), 'MMM-YY')) as Week,

WeekDay(Date#(Trim(SubField(Header, Chr(10), 1)), 'MMM-YY')) as WeekDay,

Date(Date#(Trim(SubField(Header, Chr(10), 1)), 'MMM-YY'),'DD-MMM-YY') as Date,



talk is cheap, supply exceeds demand
vishsaggi
Champion III
Champion III

Anonymous
Not applicable
Author

you can define additional parameters

D will give you day of month

WWW will give you weekday

WW will give you the weeknumber

but you Need a date in dayformat (means not a month)

e.g. =date('29.08.2016','MM/YYYY D WWW ') gives you