Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
drew_mcspy
Contributor II
Contributor II

Date Format mmm-yy

Hi

The current field "Date" is displayed as dd/mm/yyyy but I'd like to convert it to mmm-yy (e.g. Jul-19 from 01/07/2019).

When I use 

date("Date",'mmm-yy') as Date,

the Date is displayed as 000-19.

There must be a simple way to fix this but I'm not able to see it!

Any help would be appreciated. 

Thanks

1 Solution

Accepted Solutions
wdchristensen
Specialist
Specialist

You could use the formula below in your app to format the data. 

=date([myDateField], 'MMM-YY')

Alternatively you could use the method described in the link below:

https://qlikviewcookbook.com/2016/07/touchless-formatting/

Date([myDateField], 'MMM-YY') as DateExample

Rwunderlich has a very thorough explanation of what is going on behind the scenes:

https://qlikviewcookbook.com/2017/03/dual-storage-vs-dual-behavior/

View solution in original post

6 Replies
Frank_Hartmann
Master II
Master II

date(date#(Date,'DD/MM/YYYY'),'MMM-YY') as Date

drew_mcspy
Contributor II
Contributor II
Author

Hi Frank

I entered this but it didn't work. The Date just came back as blank.

 

wdchristensen
Specialist
Specialist

You could use the formula below in your app to format the data. 

=date([myDateField], 'MMM-YY')

Alternatively you could use the method described in the link below:

https://qlikviewcookbook.com/2016/07/touchless-formatting/

Date([myDateField], 'MMM-YY') as DateExample

Rwunderlich has a very thorough explanation of what is going on behind the scenes:

https://qlikviewcookbook.com/2017/03/dual-storage-vs-dual-behavior/

Sameer9585
Creator II
Creator II

Try this?

 

date(Date,'mmm') & ' - ' & date(Date,'yy') as Date_Feild

 

this works.😊

iswarya
Partner - Creator
Partner - Creator

Try this

Date(MonthName(Date),'MMM-YY')

sunny_talwar

I would use upper case MMM for months instead of mmm because M is for Months and m is for Minutes

Date("Date", 'MMM-YY') as Date,