Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

convert 11-dec into 12/11/2012

hi experts,

how can i do this 

convert source format 11-dec into 12/11/2012 

3 Replies
Not applicable
Author

hi,

Don't you have any year information, so you want to hardcode year?

if you have 11-dec-2012 then you can use  date(date#([yourdatefield],'DD-MMM-YYYY')

but if you have only 11-dec anyway, you can use this

makedate(2012,month(date#([yourdatefield],'DD-MMM'),left([yourdatefield],2))

let me know, if it answers your question.

...

Ashutosh

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try this

=date(date#([DateField] & '-2012' ,'DD-MMM-YYYY') )

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Hi,

Remember the Best practice should be when ever you get a Date field, You Must convert that into proper date

that is using Make date Function

MakeDate(), and pass the parameters which you have Date/Month/Year

refer help for this