Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Number to Date Format

Hi All,

I have extracted data from QV into an CSV file, however the date filed got converted into number format where the export of data happened.

Now I have imported the same CSV into my QV application and the number format is still the same. I am not able to convert it into date format back

The format is as follows:

41275
41276
41277
41278
41279
41280

Required format is :

1-Jan-2013

2-Jan-2013

and so on

Need your assistance.

8 Replies
sujeetsingh
Master III
Master III

try usind Date#() function or paste a sample

jagan
Luminary Alumni
Luminary Alumni

Hi Hitesh,

Try like this

Date(DaetDimensionName, 'D-MMM-YYYY') AS Date

Regards,

Jagan.

Gysbert_Wassenaar

Use the date() function:

date(MyDate, 'D-MMM-YYYY')

date(41275, 'D-MMM-YYYY')


talk is cheap, supply exceeds demand
sujeetsingh
Master III
Master III

One thing to do is just open that csv and in date field column right click>>Format Cell>>>and select Date type value

saumyashah90
Specialist
Specialist

Hi Hitesh,

Try this
Date(FieldName,'DD-MMM-YYYY') as DateField

Not applicable
Author

Unit41306412754133441315
a11111
b11710
c11753

I have used crosstable here, In the list box I am using this date field

Under the expression of list box, I have used : Date#(Duration, 'dd-mmm-yy'). I even tired Num (Date#(Duration, 'dd-mmm-yy'))

Anonymous
Not applicable
Author

no need to parse a date which is already parse using Date#

just use

Date(yourdatefield) as newdate

i used the following code in script and works fine.

LOAD Date(Date) as newdate

FROM

C:\Users\Anant\Desktop\anant.csv

(txt, codepage is 1252, embedded labels, delimiter is '\t', msq);

anant

jagan
Luminary Alumni
Luminary Alumni

HI,

Try like this

Date(Duration, 'DD-MMM-YY')


No need to use Date#().


Regards,

Jagan.