Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
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