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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
timsaddler
Creator III
Creator III

Need to retain the datetime

My OTD_Actual_Leave_Date is 41720.427083333

I am using the following code to convert back to a datetime.

Date(OTD_Actual_Leave_Date)&'-'&Time(OTD_Actual_Leave_Date)

Is there a more efficient way ?

thanks

1 Solution

Accepted Solutions
Not applicable

Hi Tim,

Try This one also work,

=timestamp(OTD_Actual_Leave_Date, 'YYYY-MM-DD hh:mm:ss' ) or

=date(OTD_Actual_Leave_Date, 'YYYY-MM-DD hh:mm:ss' )

View solution in original post

4 Replies
Not applicable

I believe the timestamp function can convert that value into a date time format, so I would try timestamp(OTD_Actual_Leave_Date).

MK_QSL
MVP
MVP

Try below in Text Box..

=Today()

Now Try below in Text Box..

=Timestamp(Today())

..... 🙂

=Timestamp(OTD_Actual_Leave_Date)

Not applicable

Hi Tim,

Try This one also work,

=timestamp(OTD_Actual_Leave_Date, 'YYYY-MM-DD hh:mm:ss' ) or

=date(OTD_Actual_Leave_Date, 'YYYY-MM-DD hh:mm:ss' )

Not applicable

Hi Tim,

Use timestamp(OTD_Actual_Leave_Date, 'YYYY-MM-DD hh:mm:ss')

Timestamp.PNG.png