Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

DATE#() or DATE() - what's the difference ?

Hello !

I have several scripts that load data from CSV files.

On those files, dates are like this : 25/02/2010 .

How should I load them on my scripts ?

I could use one of those forms below :

DATE (DATE_FIELD,'DD/MM/YYYY') AS DATE1_FIELD
DATE#(DATE_FIELD,'DD/MM/YYYY') AS DATE2_FIELD

But I dont know what's the difference between them.

It is a FACT that DATE2_FIELD , when exported to Excel, wont go WELL formatted. And this is really a problem.

There's an attached QVW where you can this bug.

The same doubt I have when dealing with numeric fields. Should I use NUM() or NUM#() to "force" the number field interpretation ?

Thanks !

2 Replies
boorgura
Specialist
Specialist

hey Adriano,

the Date#() function returns the number equivalent to the date passed into it.

and of course the date() function is the one to convert a string or change the format of a date.

Let me know if that's not clear.

Thanks,

Rocky.

Not applicable
Author

Hello Rocky !

Thanks for your help.

I guess the problem is way more tricky than what I supposed.

Take a look at this other post :

http://community.qlik.com/forums/t/26176.aspx

It's more explained there.

Thanks again !