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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date Function

Hi all ,

I got data in my excel as follows, month info as 201312

                                                                      201401

                                                                      201402

How can i get month and date info as December,January,February,2013,2014 (Correct use of date function)

i need your help,

thanks

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

Please try this, I hope its help full for you.

Month(Date#('201312','YYYYMM'))  as Mnth,

Year(Date#('201312','YYYYMM'))  as Yr

Regards,

Sub2u

View solution in original post

6 Replies
anbu1984
Master III
Master III

Load Month(Date#(Dt,'YYYYMM')) As Mth,Year(Date#(Dt,'YYYYMM')) As Yr  Inline [

Dt

201312

201401

201402 ];

its_anandrjs
Champion III
Champion III

Hi,

Try this ways

LOAD *,

Date(MonthName(Dates),'MMMM YYYY') as MonthNames;

Year(Dates) as Year,

Month(Dates) as Month;

LOAD Date(Date#(Dates,'YYYYMM'),'YYYYMM') as Dates;

LOAD * Inline [

Dates

201312

201401

201402

];

Monthnames.png

Regards

Anand

Anonymous
Not applicable
Author

Hi,

Function : Date(makedate(left(Period,4),right(Period,2),1), 'MMMM YYYY')as Month_Year;

PFA

Not applicable
Author

Hi,

Please try this, I hope its help full for you.

Month(Date#('201312','YYYYMM'))  as Mnth,

Year(Date#('201312','YYYYMM'))  as Yr

Regards,

Sub2u

Not applicable
Author

@Thank you Subba Reddy i got the desired results.

Not applicable
Author

your welcome