Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

A way to display dates as <Day> - <Weekday>

Hi,

Is there a way that I can get an expression that shows my days of the week as (for e.g) "13 - Wed" assuming that this is the Day/ Weekday combination of the 13th of Jan 2016 which is a Wednesday.

In short, I have loaded Day(date) and Weekday(date) into my data but I'm wondering if there is an expression that combines the two.

Thanks,

D

5 Replies
sunny_talwar

Try this may be:

=Date(Today(), 'DD - WWW')

Not applicable
Author

Hi Sunny,

I tried that but all it does is give me todays date in a column with the day like 27-Wed.

What I need is to Load a column which loads the date and day based on the date column.

Thanks for your help anyway.

D

sunny_talwar

Well the above was to show how you can format date in that particular format. For changing your date to that format in the script, you can try the following:

Date(DateField, 'DD - WWW') as [Day-Week],


Here is a sample to look at:

Table:

LOAD Date,

  Date(Date, 'DD - WWW') as [Day-Week];

LOAD Date(MakeDate(2014, 12, 31) + RecNo()) as Date

AutoGenerate 721;

Capture.PNG

Not applicable
Author

Thanks Sunny,

Adding Date(DateField, 'DD - WWW') as Day-Week to the Load script worked perfectly.

Regards,

D

sunny_talwar

Awesome. I am glad you were able to figure it out.

Would you mind closing this thread by marking correct and any helpful answers? Qlik Community Tip: Marking Replies as Correct or Helpful

Best,

Sunny