• 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: Calculation needed between 2 date and time fields

Calculation needed between 2 date and time fields 7 years 5 months ago #37510

  • baetensb
  • baetensb's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 4
Hi,

I have a challenge I have to perform in a form. I have 2 calendar attributes (caldate 1 and caldate 2). Caldate 1 is mandatory, caldate 2 is optional.

I also have 2 textbox attributes for filling in times (time1 and time2. Time 1 is mandatory and time2 is optional, both are in hh:mm notation and validated using a regex).

I have to apply the following logical rules in the form for the above attributes:

- In case caldate1 = equal to todays date, time1 must be at least 120 minutes later than the current system time

- in case caldate1 = filled and caldate2 = filled and both dates are on the same date, the difference between time2 and time1 must be at least 45 minutes.

Can you please help me to establish this?
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!