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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
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)
13 Replies
sangeethag
Contributor III
Contributor III

Hi

Can you write your output expectation clearly?

For Month Name you just try this, use either in Script / expression

LOAD Date(MakeDate(left(Date,4),Mid(Date,5,2),Right(Date,2)),'YYYYMMDD') As Date,

     Date(MakeDate(left(Date,4),Mid(Date,5,2),Right(Date,2)),'YYYYMMMDD') As DateMonthName,

     Month(Date(MakeDate(left(Date,4),Mid(Date,5,2),Right(Date,2)),'YYYYMMMDD')) As MonthName

FROM

(ooxml, embedded labels, table is Sheet1);

Output will be:

Anonymous
Not applicable
Author

Agreed, Same can be achieved by removing Date() & Alt() function from the above mentioned expression.

I thinks,she might be using Alt() functionality, then I just add month() to her expression. Else this would be working perfectly as well..

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

rajeshforqlikvi
Creator
Creator

Hi You can use like this as below example:

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

Anonymous
Not applicable
Author

month(DATE COLUMN) AS DATE _iNTERVIEW