Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
jim_chan
Specialist
Specialist

how to change a date format 20181010 to month year Oct-2018?

Hi guys,

How to change a date format 20181010 to month year Oct-2018?

I have a date field data - 20181010, in the backend script i use:date(MonthStart(date#(report_date,'yyyymmmdd')),'MMM-YYYY') as monthyear.

result was - Jan-2018, but why is it not Oct-2018??

Please help guys!

Rgds

Jim

1 Reply
Frank_Hartmann
Master II
Master II

try this:

date(date#(report_date,'YYYYMMDD'),'MMM-YYYY') as monthyear


or this:


date(MonthStart(date#(report_date,'YYYYMMDD')),'MMM-YYYY') as monthyear