Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to change a date time field to just display the date

I'm newbie with Qlikview and I have a chart that has a datetime field MM/DD/YYYY HH:MM:SS and I want to change it so that the time isn't displayed.

In the picture below, i just want to eliminate the time after the date.

error loading image

1 Solution

Accepted Solutions
disqr_rm
Partner - Specialist III
Partner - Specialist III

I think you got many answeres for this, but another one wouldn't hurt. 🙂

Instead of putting Date field in the dimension, put date(Date).

But I am sure you have it working by now.

View solution in original post

6 Replies
disqr_rm
Partner - Specialist III
Partner - Specialist III

If you just want to change on one chart, just go to "Number" tab, click on the field you want to change and chose Date radio button.

If you want to change everywhere, then best would be to load it as date only. For that you can use date() function, like LOAD date(DateTime) as Date.

Hope this helps.

Not applicable
Author

Hey Rakesh,

The Date field is not available in the NUMBER table for modification. See picture below

Not applicable
Author

Hi Change the script to read

Load

Date(floor(Date), 'DD/MM/YYYY') as Date

The Date in the floor (Date) brackets is the name of your column, the first date is the Date finction.

The floor function takes it to the start of the day

Hope this is of help,

Regards,

Neil

Not applicable
Author

You can also go to Document Properties -> Numbers. Then pick the date field and set the format from there.

Not applicable
Author

use date() function in your script, just like rakesh said.

date(DATEFIELD) as DATENAME, use DATENAME field in your chart.

disqr_rm
Partner - Specialist III
Partner - Specialist III

I think you got many answeres for this, but another one wouldn't hurt. 🙂

Instead of putting Date field in the dimension, put date(Date).

But I am sure you have it working by now.