Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Peter_Brunner
Creator
Creator

MonthStart and MonthEnd Dates as YYYYMMDD format from dd/mm/yyy

Hi All,

I have been trying to format a date and remove seperators but no joy  YYYYMMDD

Not DD/MM/YYYY

 

I have attached a sample files to explain  

 

appreciate any help

 

Reagrds Peter

 

Labels (2)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master
Partner - Master

Try:

Date(MonthStart(TempDate), 'YYYYMMDD') as MonthStartDateNum,
Date(MonthStart(TempDate), 'YYYYMMDD') as MonthEndDateNum

View solution in original post

2 Replies
BrunPierre
Partner - Master
Partner - Master

Try:

Date(MonthStart(TempDate), 'YYYYMMDD') as MonthStartDateNum,
Date(MonthStart(TempDate), 'YYYYMMDD') as MonthEndDateNum

Peter_Brunner
Creator
Creator
Author

Hi 

you are Correct  had to change the MonthEnd date to the second statement but all good works as I require 20161201 20161231

 

 

Date(MonthStart(TempDate),'YYYYMMDD')as MonthStartDateNum

Date(MonthEnd(TempDate),'YYYYMMDD')as MonthEndDateNum

 

 

thank you

Regards Peter