DoctorGonzo
Programmer
Hi guys,
Need help with a javascript / maths problem.
I have a field which contains a number of minutes.
I need to convert this into hours and minutes though.
If I simply divide the field by 60, this gives me a DECIMAL ie. 350 (mins) divided by 60 returns 5.83 hours... but what needs to be returned is 5 hours 50 minutes.
Can anyone help with this? I'm thinking I will pass the minutes value to some sort of function.....
Gonzo
Need help with a javascript / maths problem.
I have a field which contains a number of minutes.
I need to convert this into hours and minutes though.
If I simply divide the field by 60, this gives me a DECIMAL ie. 350 (mins) divided by 60 returns 5.83 hours... but what needs to be returned is 5 hours 50 minutes.
Can anyone help with this? I'm thinking I will pass the minutes value to some sort of function.....
Gonzo