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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date Conversion Question?

I have a julian like numeric date i need converted.  In this date, today (January 13, 2012) is 1120113.  I've tried the code below from looking at other sources, but it doesn't work.
date(date#(mrsdtc, '1YYMMDD'), 'DD-MM-20YY') as "MO Date",
Any thoughts?
1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hi Brandon,

You may get rid of that leading "1" in the Date#() and set the Date() to display 'DD-MM-YYYY' instead:

Date(Date#(Right(mrsdtc, 6), 'YYMMDD'), 'DD-MM-YYYY') AS "MO Date"

Hope that helps.

Miguel

View solution in original post

1 Reply
Miguel_Angel_Baeyens

Hi Brandon,

You may get rid of that leading "1" in the Date#() and set the Date() to display 'DD-MM-YYYY' instead:

Date(Date#(Right(mrsdtc, 6), 'YYMMDD'), 'DD-MM-YYYY') AS "MO Date"

Hope that helps.

Miguel