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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
bhimes10000
Contributor
Contributor

Force date to be stored as number in CSV

How can I force a date to be stored as a number in a CSV? I have tried stripping off the $date tag from the field, adding 0 to it, reloading the field using date#, and reloading the field using num#. Any advice on how to get the Qlik equivalent of Excel's datevalue?

The csv file should store '12/31/2013' as 41639.

2 Replies
nagaiank
Specialist III
Specialist III

Num(Date#('12/31/2013')) returns 41639

hic
Former Employee
Former Employee

I would do exactly the same as NagaianK. To understand what happens, you should read about interpretation vs. formatting and about dual fields:

QlikView Date fields

http://community.qlik.com/blogs/qlikviewdesignblog/2012/11/13/dual

HIC