Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Convert minutes to date

Hello all,

I have a field containing number of minutes strarting from a date. I want to have this field as a timestamp.

Field           Timestamp

727519        01/05/2015 05:19

Thank you if u have any clue

1 Solution

Accepted Solutions
m_woolf
Master II
Master II

I gather that your start date is 8/18/2013

StartDate + Field/60/24 as TimeStamp

View solution in original post

9 Replies
sunny_talwar

What is the starting date in your case?

Not applicable
Author

I only know that 727519  corresponde to this date  01/05/2015 05:19.
I can say that  in field2=field1-727519  the start date is 01/05/2015 05:19.

sunny_talwar

Assuming your date to be in this format: DD/MM/YYYY, the starting date seems to be 12/12/2013. Try this in a text box if its true:

=Timestamp#(Date(Date#('12/12/2013', 'DD/MM/YYYY') + Floor(Interval#('727519', 'mm')), 'DD/MM/YYYY') & ' ' & Interval(Frac(Interval#('727519', 'mm')), 'hh:mm'), 'DD/MM/YYYY hh:mm')

Capture.PNG

HTH

Best,

Sunny

m_woolf
Master II
Master II

I gather that your start date is 8/18/2013

StartDate + Field/60/24 as TimeStamp

sunny_talwar

Awesome

I made a simple thing so much more complicated with my solution. I was just checking how your solution works and I guess to get him what he is looking for (in the format he is looking for), I added the TimeStamp() function around it:

=Timestamp(Date#('8/18/2013', 'MM/DD/YYYY') + 727519/(60*24), 'MM/DD/YYYY hh:mm')

Not applicable
Author

thank you for the answer

Not applicable
Author

thank you a lot !

sunny_talwar

I am glad we were able to help, but I think the answer came from mike woolf‌, you should reward him for the correct answer (and reward me with a helpful answer if you like )

Not applicable
Author

You are right, thank you both and all the community members who share knowledge