Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Retrieving Month and Year

I Have one Serial number Like 11061311012, the first six digits are date field. I am retrieving the those six digits means 110613 i.e date. I am using this field how can i retrieve the month and year like Jun-2013.

4 Replies
swuehl
MVP
MVP

Use

month(date#('110613','DDMMYY') )

resp. the year() function. (Edit: Or any other Date functions from the Help, like Monthname() )

MK_QSL
MVP
MVP

Use Below in your Script

Date(Date#(Left(11061311012,6),'DDMMYY')) as Date,

Month(Date#(Left(11061311012,6),'DDMMYY')) as Month,

Year(Date#(Left(11061311012,6),'DDMMYY')) as Year,

Date(Date#(Left(11061311012,6),'DDMMYY'),'MMMM-YYYY') as Month-Year

you can replace 11061311012 with your DateField

Hope this helps..

jagan
Luminary Alumni
Luminary Alumni

Hi Kiran,

Try like this

=Date(date#(Left('11061311012'),'DDMMYY'), 'MMM-YYYY' )


Or


=Date(date#(Left(DimensionName),'DDMMYY'), 'MMM-YYYY' )


Regards,

Jagan.

its_anandrjs

You can write like

=Date(Date#(left(YourDateDimension,6),'DDMMYY'),'MMM-YYYY')

Or

=MonthName(Date#(left(Date,6),'DDMMYY'))