Skip to main content
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

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?

tresesco
MVP
MVP

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

MayilVahanan

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
Luminary Alumni
Luminary Alumni

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

tresesco
MVP
MVP

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')