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

Convert YYYYMMDD into Monthname

Hello All,

I need to convert 'YYYYMMDD' into monthname like 'Jan. , Feb. , etc....'

I manage to convert it into date using the below:

Date(alt(Date#(DATE, 'YYYYMMDD')), 'DD/MM/YYYY') as Date_Interview,

Any idea?

KR,

Hasvine

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

just add Month() to your exprression like this?

month(Date(alt(Date#(DATE, 'YYYYMMDD')), 'DD/MM/YYYY')) as Date_Interview_Month,

View solution in original post

13 Replies
Chanty4u
MVP
MVP

Date(alt(Date#(DATE, 'YYYYMMDD')), 'MMM') as Date_Interview,



or u want only month name ?   or with date format?

tresB
Champion III
Champion III

Month(Date#(DATE, 'YYYYMMDD')) as Month

MayilVahanan
MVP
MVP

Hi

Try like this

Load *, Month(Date_Interview) AS Month, Year(Date_Interview) AS Year;

Load *,

Date(Date#(DATE, 'YYYYMMDD'),'DD/MM/YYYY') AS Date_Interview

YourTableName;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

I want the month name.

I managed to do the date.

Many Thanks,

Hasvine

Anonymous
Not applicable
Author

just add Month() to your exprression like this?

month(Date(alt(Date#(DATE, 'YYYYMMDD')), 'DD/MM/YYYY')) as Date_Interview_Month,

jagan
Partner - Champion III
Partner - Champion III

HI,

Try like this

LOAD

*,

Month(Date_Interview) AS Month_Interview;

LOAD

*,

Month(Date#(DATE, 'YYYYMMDD'), 'DD/MM/YYYY') as Date_Interview

FROM DataSource;


Hope this helps you.


Regards,

Jagan.

Not applicable
Author

Thanks.

It works.

Kind Regards,

Hasvine

tresB
Champion III
Champion III

Some of the functions here are unnecessary I see, the same could be got using a simpler expression I shared above.

Month(Date#(DATE, 'YYYYMMDD')) as Month

It's better to be better. Isn't it?

rajeshforqlikvi
Creator
Creator

=Date(Addmonths(today(),-1),'MMM')