Simple date/time calculation

By: Ricci Fothergill | Asked: 06/22/2024
ForumsCategory: General questionsSimple date/time calculation
Ricci Fothergill asked 3 months ago
Using FF as a way of issuing digital parking permits - the user enters their vehicle registration and the form issues them a digital parking permit. The form entry is then sent to the external ANPR system which checks the vehicle is permitted to park, and issues a warning if they overstay (all this part works).  I'd like to have a read-only text box that shows the expiry of the permit, so the current date and time + 6 hours. If the permit is registered at say 22/06/24 2200h, the expiry time should show 23/06/24 0400h. Any ideas what code to use in the "Expiry" text box to achieve this? thanks so much :)  
Attachments
1 Answers
Rob LeVineRob LeVine answered 3 months ago
The offset option will allow you to add something to the date of another field. I've only used it for days, so you'll have to see if it works for hours. If it doesn't, you can create a custom shortcode in PHP.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right