• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Time Calculation

Time Calculation 4 years 8 months ago #40494

  • mike21
  • mike21's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
Hi there

I'm trying to use two input fields (TimeFrom and TimeTo) in order to calculate a duration between two times, given in hours and minutes.

I have so far been able to do this but the calculation only gives the results in minutes. For example, a duration of 1h30m gives a result of 90 rather than 1:30. Is there a way to get this to work?
The administrator has disabled public write access.

Time Calculation 4 years 8 months ago #40499

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 745
  • Thank you received: 66
Hello,

Since you have the number of minutes you will only need to convert this value to a proper hours and minutes format, performing a Google search on this topic provided the following solution you could use as a starting point:

www.w3resource.com/javascript-exercises/...asic-exercise-51.php
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Time Calculation 4 years 8 months ago #40501

  • mike21
  • mike21's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
Thank you, I found the same link. However I am not an experienced web developer so I would welcome some pointers on how to practically make this work with an RSForm.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!