Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Time stamp to date conversion issue

hi,

I have a date field in this format "DD/MM/YYYY hh:mm:ss AM" .now I need to extract only date from this filed.

when I am sing the date function to extract am getting Multiple values for same date since the Time is different for tht. How can I get distinct date in date field??

Kindly suggest!!...

Regards;

Reena

1 Solution

Accepted Solutions
amit_saini
Master III
Master III

Try this:

date(floor(MyTimeStampField), 'DD-MM-YYYY')

Thanks,
AS

View solution in original post

5 Replies
amit_saini
Master III
Master III

Try this:

date(floor(MyTimeStampField), 'DD-MM-YYYY')

Thanks,
AS

Anonymous
Not applicable
Author

use date(floor(time stamp)) while loading the date...

PrashantSangle

Hi,

USe floor() inside date()

try like

date(floor(datefield))

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 🙂
Not applicable
Author

yea...with floor it worked.. !!! Thanks a lot..

amit_saini
Master III
Master III

If it is working fine , please close the thread !

Thanks,
AS