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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
lionking15
Creator
Creator

About date format

hi,

i have create a date column in my excel sheet and given date as 19/07/2016 but after reloading the script it is coming in number format 42570 why??and how to correct it??

8 Replies
oknotsen
Master III
Master III

Dates are actually numbers (counted from Dec 31st, 1899).

If you put a Date() function around that field in your load script, all problems should be solved.

Normally dates just stay dates, so my guess is you are also loading that same field name as a number in your script or you use it in a mapping load, as mapping tables turn dates into numbers again.

May you live in interesting times!
qlikviewalex
Contributor III
Contributor III

If you load the Value. You can ad Date#()

load

...

date#( yourDate ) as yourDate

PrashantSangle

Hi,

just use date(dateField,'DD/MM/YYYY')

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
antoniotiman
Master III
Master III

Use

Date(DateField) as DateField

Date Field is Dual Field

Text -> 19/07/2016 and Number -> 42570

Regards

oknotsen
Master III
Master III

Correction: Without the #

May you live in interesting times!
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Date have both number and string interpretation.

From Reference Manual:

Screenshot_3.jpg

From QlikView Help:

Screenshot_3.jpg

oknotsen
Master III
Master III

Note that help is now (since QlikView 12) completely online, so there is no need to post screenshots of it. You can just link to the appropriate topic.

Qlik | Help

May you live in interesting times!
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Thanks for that!