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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
madmax88
Creator II
Creator II

Format Timestamp

Hi,

 

Is it possible to format this timestamp to format DD.MM.YYYY?

Jan 4, 2018 2:28:58 PM

Target: 04.01.2018

 

 

1 Solution

Accepted Solutions
sunny_talwar

You can try this if it is read as a timestamp by Qlik

 

Date(Floor(TimeStampField), 'DD.MM.YYYY')

 

If not read as a timestamp

 

Date(Floor(TimeStamp#(TimeStampField, 'MMM D, YYYY h:mm:ss TT')), 'DD.MM.YYYY')

 

 

View solution in original post

4 Replies
DavidM
Partner - Creator II
Partner - Creator II

You can use Date function (as long as the date is interpreted as $date, $timestamp)

 

Date(fieldname, 'DD.MM.YYYY')

 

tresesco
MVP
MVP

In qlik date() is a formatting function. If you have a timestamp, you could just try like:

Date(<yourtimestamp>, '<yourformat>')

i.e. 

Date(<timestamp>, 'DD.MM.YYYY')

sunny_talwar

You can try this if it is read as a timestamp by Qlik

 

Date(Floor(TimeStampField), 'DD.MM.YYYY')

 

If not read as a timestamp

 

Date(Floor(TimeStamp#(TimeStampField, 'MMM D, YYYY h:mm:ss TT')), 'DD.MM.YYYY')

 

 

madmax88
Creator II
Creator II
Author

Thanks

 

Date(Floor(TimeStamp#(TimeStampField, 'MMM D, YYYY h:mm:ss TT')), 'DD.MM.YYYY')

 

worked