Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Reformat date

Hi,

I have the following dates imported from an excel file:

December 1, 2015

December 2, 2015

December 3, 2015

December 4, 2015

How would I format them to mm/dd/yyyy in the import script?

Best,

Matt

1 Solution

Accepted Solutions
maxgro
MVP
MVP

you can define LongMonthNames

and use the MMMM format code

as explained here

Roman Emperors and the Month Names

View solution in original post

7 Replies
maxgro
MVP
MVP

you can define LongMonthNames

and use the MMMM format code

as explained here

Roman Emperors and the Month Names

sunny_talwar

May be this:

Date(DateField, 'MM/DD/YYYY') as DateField

PradeepReddy
Specialist II
Specialist II

try some thing like this...

Date(Date#(Date_Field,'MMMM DD, YYYYY'),'YYYY-MMM-DD') as  Date_Field_New

tresesco
MVP
MVP

Date(Date#(Date_Field,'MMMM DD, YYYYY'), 'MM/DD/YYYY') as  Date_Field_New

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

Data:

LOAD

*,

Date(Date#(DateFieldName,'MMMM DD, YYYY'), 'MM/DD/YYYY') AS DateField_New

From DataSource;


Hope this helps you.


Regards,

jagan.

Anonymous
Not applicable
Author

try like this?

=date(date#(YourDateField,'YourExcelDateFormat'),'YourRequiredFormat') as NewDate

kkkumar82
Specialist III
Specialist III

Hi,

Atlast I am attaching a file.

thanks

Kiran Kumar