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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
dmac1971
Creator III
Creator III

Timestamp, Datestamp, Time, Date etc etc etc

Need a definitive guide on extracting date and time from a timestamp, having diffs with it!

Data comes in from a csv file, in the file the data is displayed as "01/07/2015  06:53:00", once imported into QV without any changes the format changes to "01-07-2015  06:53:00".  So it looks like QV has recognised the data as a date etc.

To extract a workable date I'm using :

Date(Timestamp#([Start Date and Time],'DD-MM-YYYY')) As StartDate,

And this seems to work ok as I can then generate my calendar etc.  How do I extract the time, and just the time?

10 Replies
settu_periasamy
Master III
Master III

Try this with 2 space between yyyy and hh

=timestamp(timestamp#(field,'DD/MM/YYYY  hh:mm:ss'),'hh:mm:ss')