Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

Dual Date

Hi All,

I am not able to complete this script , can you please help in resolving the below script line ?

 

Dual(Date(WeekEnd(Date#(TempDate,'MM-DD-YYYY')),'DDMMMYY') & ' - ' & Date(WeekEnd(Date#(TempDate,'MM-DD-YYYY')),'DDMMMYY'))as Start_End_Date,

 

Thanks In Advance

1 Solution

Accepted Solutions
Vegar
MVP
MVP

Try this. 

Date( WeekStart( Date#(TempDate,'MM-DD-YYYY')),'DDMMMYY') & ' - ' & Date(WeekEnd(Date#(TempDate,'MM-DD-YYYY')),'DDMMMYY') as start_End_Date

 

 

View solution in original post

3 Replies
Vegar
MVP
MVP

What's the issue with your script line. It looks ok to me. 

Please explain your issue in more detail.

smilingjohn
Specialist
Specialist
Author

Hi Vegar,

This is not generating me the weekend and weekstart date . I want something like below 

1Mar20 - 7Mar20

8Mar20 - 14Mar20

15Mar20 - 21Mar20   and so on which I am not getting , The outpu is coming as blank 

Thanks 

Vegar
MVP
MVP

Try this. 

Date( WeekStart( Date#(TempDate,'MM-DD-YYYY')),'DDMMMYY') & ' - ' & Date(WeekEnd(Date#(TempDate,'MM-DD-YYYY')),'DDMMMYY') as start_End_Date