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: 
smilingjohn
Specialist
Specialist

Date Format

Hi All,

In the Script I am trying to convert Date filed like below but  after reloading the field is banl doesnot show any values in it 

 

Date(weekstart(TempDate,'DD/MM/YYY'),'DDMMMYY') as TestWeekStart,

 

The TempDate format is like :  01/23/2020 

 

How do i convert this into the weekstart format in 1Jan20

 

Thanks in Advance 

1 Solution

Accepted Solutions
sagarjagga
Creator
Creator

If your temp date is in MM/DD/YYYY Format you can use

Date(WeekStart(Date#(Tempdate,'MM/DD/YYYY')),'DDMMMYY')

 

 

View solution in original post

2 Replies
sagarjagga
Creator
Creator

If your temp date is in MM/DD/YYYY Format you can use

Date(WeekStart(Date#(Tempdate,'MM/DD/YYYY')),'DDMMMYY')

 

 

Vegar
MVP
MVP

The last format string 'DDMMMYY' will not return  1Jan20 but 01Jan20. To get a single digit day you should use 'DMMMYY'.