Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date format

I have a field called TIME_ID with dates in the format 20130623.How can I change this to the format jan-13,feb-13,mar-13,apr-13 and so on...

8 Replies
MayilVahanan

Hi

Try like this

Date(Date#(TIME_ID, 'YYYYMMDD' ) ,'MMM-YY')



Edit:

developer_ABHI,

I replied to this Date format. itself.

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

The above format will come up with jan-13 for 30 days in Jan meaning I can see 30 Jan-13's,30 feb-13's and so on.I want just want one jan-13,one feb-13,one mar13 and so on.

CELAMBARASAN
Partner - Champion
Partner - Champion

Convert it into Text format. Internally it maintains date also meaning it only changes the display value.

Use Text() around the expression.

CELAMBARASAN
Partner - Champion
Partner - Champion

For more information on datatypes in qliikview click here

Not applicable
Author

in the load script?

distinct date(TIME_ID,'MMM-YY') AS Month

Not applicable
Author

Thank you everybody for the answer.

jaimeaguilar
Partner - Specialist II
Partner - Specialist II

Put this on script:

date(Date#(TIME_ID,'YYYYMMDD'),'MMM-YY') as Date

First you tell QlikView to recognize the original format of the date (TIME_ID) and then you change it as you wish

regards

MayilVahanan

HI

Please close this post if u get the answer

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