Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
bbergstrom
Partner - Creator II

Date Format not Working

In Qlik Sense we have a date field where the data is stored as yyyy-mm-dd and it needs to be converted to mm/dd/yyyy.  I tried using the following:

Date(Date#(DateEnteredSurplus,'yyyy-mm-dd'),'mm/dd/yyyy')

This formats the date correctly in the Qlik Hub, 04/29/2016, but when I export the table it looks like this in Excel:

/29/2016

Clicking on the cell reveals this value: 01/29/2016 12:04:00 AM

Can someone help me understand why this is not exporting correctly. 

Labels (1)
1 Solution

Accepted Solutions
Vegar
MVP

Format mm is minute. Format MM is month.

Try

Date(Date#(DateEnteredSurplus,'YYYY-MM-DD'),'MM/DD/YYYY')

View solution in original post

2 Replies
Vegar
MVP

Format mm is minute. Format MM is month.

Try

Date(Date#(DateEnteredSurplus,'YYYY-MM-DD'),'MM/DD/YYYY')

sergio0592
Specialist III