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

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