Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I was wondering if someone has a solution to separate the date and hour from a timestamp ("DD.MM.YYYY hh:mm")?!
Instead of "01.01.2009 03:54" I'd like to generate "01.01.2009 03"
I was thinking of using the makedate function somehow...
Any suggestions?
Yes, I think you are on the right track. Something along the line of :
Floor(timestamp(value, 'MM.DD.YYYY mm:ss')) + MakeTime(Hour(timestamp(value, 'MM.DD.YYYY mm:ss')) )
-Rob
Hi Droz,
Do you wanna just omit the minutes?. I'm thinking this, based on your example "01.01.2009 03".
Best regards.
Yes, I think you are on the right track. Something along the line of :
Floor(timestamp(value, 'MM.DD.YYYY mm:ss')) + MakeTime(Hour(timestamp(value, 'MM.DD.YYYY mm:ss')) )
-Rob
Dear Miguel and Rob - yes Miguel, that's it and Rob already found a solution that works 😉
Floor(timestamp(Value, 'MM.DD.YYYY hh:mm')) + MakeTime(Hour(timestamp(Value, 'MM.DD.YYYY hh:mm')))
Thanks a lot,
Nico