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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
anuradhaa
Partner - Creator II
Partner - Creator II

Convert date time to num

Hi,

I have below expression and i want to convert it num()

Please help

date(ReloadTime() ,'YYYY-MM-DD') &'  '& time(MakeTime(6,30),'hh:mm')

Thank You

1 Solution

Accepted Solutions
Anonymous
Not applicable

try this:

=num(timestamp#(date(ReloadTime(),'DD/MMM/YYYY')&' '&Time(MakeTime(6,30),'hh:mm'),'DD/MMM/YYYY hh:mm'))

View solution in original post

5 Replies
Chanty4u
MVP
MVP

hi

use Alt() fun,

try lik dis

hope this helps you

Alt(Date#(DateField, 'd/M/yyyy'), Date#(DateField, 'M/d/yyyy'),Date#(DateField, 'd/MMM/yyyy'), ...............

)

thanks

Suresh

Anonymous
Not applicable

try this:

=num(timestamp#(date(ReloadTime(),'DD/MMM/YYYY')&' '&Time(MakeTime(6,30),'hh:mm'),'DD/MMM/YYYY hh:mm'))

maxgro
MVP
MVP

floor(ReloadTime()) + MakeTime(6,30)

1.png

anuradhaa
Partner - Creator II
Partner - Creator II
Author

if i used floor(ReloadTime()) it use both date n time. but i want only the date

tresesco
MVP
MVP

The reverse is true. If you use floor(), it gives you the integer part of a timestamp and that doesn't contain time but the date only. The fraction part of a timestamp is responsible for time.