Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
Gartner® Magic Quadrant™: 15 YEARS A LEADER - GET THE REPORT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date Conversion Problem

Hi All,  I am facing a problem with the date conversion.

I have this excel file in which i have a date column in which i intend to have dates in 'DD/MM/YYYY' format.

But when i import this file into qlikview it appears in 'MM/DD/YYYY'.

Converting these dates using the :

date(date#(date,'DD/MM/YYYY'),'DD/MM/YYYY') as date lends me null values in the frontend.

I also tried using date(makedate(subfield(date,'/',3),subfield(date,'/',2),subfield(date,'/',1)),'DD/MM/YYYY')

but still i am getting null values.  I am not able to fetch dates correctly to the application. I think its a problem of excel file, but i am not able to identify it correctly and solve it.

Any help would be appreciated. 

Thanks in advance. 

P.S. : Attaching the excel file which contains date column.

26 Replies
Not applicable
Author

Hi,

you can convert date into number format.

when you show in chart date(date,'DD/MM/YYYY') use like this or

go chart properties->number->date  and change format.

Regards

Vimlesh

prma7799
Master III
Master III

Hi Shashi,

Can you post some small application for the same.

Thanks

PM

Not applicable
Author

Hi,

Your Excel Date formate

So that 01 is Month and 05,06,07 are days.

PrashantSangle

Hi,

Jonathan is wright about date format.

Your date in xls is in DD/MM/YYYY format.

Therefore you are getting this output.

Check your xls.

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 🙂
fashid
Specialist
Specialist

HI,

BUT CANT WE CHANGE THE DATE FORMAT USING THE DATE# FUNCTION IN QLIKVIEW

REGARDS,

NADEEM

Not applicable
Author

Hi,

See i need the 01 to be interpreted as date. In excel file i had intended the date to be in DD/MM/YYYY format but instead , the excel file is reading it as MM/DD/YYYY format.

I checked in the excel and i found that 01 is being interpreted as month. What should i do or make changes in the excel.

Not applicable
Author

Ya i saw that thank you. But i need the 01 to be interpreted as date. What should i do for that??

Not applicable
Author

Hi all,

Thanks for your help, Really appreciate it.

I managed to get things done by making use of makedate().

I have attached what i needed.

Not applicable
Author

Hi,

You can't change date in excel by using any format.

If you want to change the date then you should add .

Use this expression in script

makedate(year(date),day(date),month(date) ) as DATE111,

Regards

Vimlesh

fashid
Specialist
Specialist

Hi,

Could you please attach the formula or the script that you used

would be helpful for learners like me .

Regards,

Nadeem