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

Need help on date function

Hi,

In my tabls the field HIRE_DATE is in format DD/MMM/YYYY(10-Dec-2014).

How to convert this in to number format (DD/MM/YYYY) (10-12-2014)

i tried this but not worked out

Load

HIRE_DATE,

year(HIRE_DATE),

Month(HIRE_DATE),

week(HIRE_DATE),

Day(HIRE_DATE)

Resident EMP;

1 Solution

Accepted Solutions
MarcoWedel

LOAD *,         

          Year(HIRE_DATE) as Year,

          Month(HIRE_DATE) as Month,

          Week(HIRE_DATE) as Week,

          Day(HIRE_DATE) as Day;

LOAD Date(Date#(HIRE_DATE, 'DD-MMM-YYYY'),'DD-MM-YYYY') as HIRE_DATE

Resident EMP;

View solution in original post

3 Replies
MarcoWedel

LOAD *,         

          Year(HIRE_DATE) as Year,

          Month(HIRE_DATE) as Month,

          Week(HIRE_DATE) as Week,

          Day(HIRE_DATE) as Day;

LOAD Date(Date#(HIRE_DATE, 'DD-MMM-YYYY'),'DD-MM-YYYY') as HIRE_DATE

Resident EMP;

Not applicable
Author

Hello Marcos,

Thanks for the solution.

MarcoWedel

You're welcome

regards

Marco