02-15-2014 04:27 AM
Hello,
Is there a simple way to round a date/time to the nearest Minute ?
Example : 22/03/2013 10:23:35 rounded to 22/03/2013 10:24:00
22/03/2013 10:23:29 rounded to 22/03/2013 10:23:00
I could juste compare the seconds to 30 and round to Minute or Minute+1 but I would have to manage the change of day/month/year
Thanks,
User
Solved! Go to Solution.
02-15-2014 06:14 AM
@User79 wrote:
Hello,
Is there a simple way to round a date/time to the nearest Minute ?
Example : 22/03/2013 10:23:35 rounded to 22/03/2013 10:24:00
22/03/2013 10:23:29 rounded to 22/03/2013 10:23:00
I could juste compare the seconds to 30 and round to Minute or Minute+1 but I would have to manage the change of day/month/year
Thanks,
User
Here is a way to do it.
Ben64
02-24-2014 03:51 AM
Hi Ben64,
Sorry for the delay. thanks for the accurate and quick answer !
Regards,
User