Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date format

Hi all,

I'm having trouble converting the date format eg. 201202, into Monthyear ie. Feb-2012

I've tried a number of different expressions, but seem to be going around in circles.

Any ideas?

Many thanks

1 Solution

Accepted Solutions
Gysbert_Wassenaar

date(date#('201202','YYYYMM'),'MMM-YYYY')


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar

date(date#('201202','YYYYMM'),'MMM-YYYY')


talk is cheap, supply exceeds demand
Not applicable
Author

Hello Beanz,

You can try this:

Test:

LOAD * INLINE [

    Dates

    201202

    201201

    201204

];

LOAD replace(MonthName(MakeDate(left(Dates,4),right(Dates,2))),' ','-') as DateNew Resident Test;

Let me know if it was helpful, or anything else is required.

thanks,

itsangad

Not applicable
Author

@Gysbert surely has given a better solution.