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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

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


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

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.