Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
krmvacar
Creator II
Creator II

Timestamp convert date and time

Hi All,

I have data in date time and seconds format, how can I convert it as follows?
Your help is requested.

Source:

DateTime
2024-01-01T22:24:18.802Z
2024-01-01T23:38:38.767Z
2024-01-04T13:38:48.677Z

 

I want to Result:

DateTime Date HourTime
2024-01-01T22:24:18.802Z 2024-01-01 22:24
2024-01-01T23:38:38.767Z 2024-01-01 23:38
2024-01-04T13:38:48.677Z 2024-01-04 13:38
Labels (2)
1 Solution

Accepted Solutions
MatheusC
Specialist
Specialist

see it like this:

Date -> Date(Floor(DateTime))

HourTime -> Time(Frac(DateTime)) - standard

HourTime -> Time(Frac(DateTime),'hh:mm') - custom hh:mm


Regarts, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!

View solution in original post

2 Replies
MatheusC
Specialist
Specialist

see it like this:

Date -> Date(Floor(DateTime))

HourTime -> Time(Frac(DateTime)) - standard

HourTime -> Time(Frac(DateTime),'hh:mm') - custom hh:mm


Regarts, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
nik_erry
Contributor II
Contributor II

ciao, ma vuoi ottenere una stringa oppure dei "valori" numerici di tipo data?
Perché nel primo caso basta utilizzare le funzioni di stringa, nel secondo caso utilizza la funzione #Timestamp passandogli la quota parte della stringa originale, poi con le due funzioni Date e Time hai il valore finale.