End date equals...
2 posts by 2 authors in: Forums > CMS Builder
Last Post: October 11, 2011 (RSS)
By Toledoh - October 10, 2011
Hi Guys.
I've got a table with Start Date and End Date fields for open houses.
Can I use the strtotime value to generate a time say 30 minutes after the entered start date?
So if an editor selects the start_date, the end_date automatically shows start_date plus 30 minutes? which can then be over-written if they want?
I've got a table with Start Date and End Date fields for open houses.
Can I use the strtotime value to generate a time say 30 minutes after the entered start date?
So if an editor selects the start_date, the end_date automatically shows start_date plus 30 minutes? which can then be over-written if they want?
Cheers,
Tim (toledoh.com.au)
Tim (toledoh.com.au)
Re: [Toledoh] End date equals...
By Jason - October 11, 2011
Hi Tim,
When using the "strtotime" option, you only enter in the strtotime command. For example, if you enter
+30 minutes
the default value of the field will be 30 minutes more than the current time. So if you set the default value of "start_time" to be the current time, and use +30 minutes on "end_time", you would get the result your looking for.
There currently isn't an "onchange" event for date fields that you would allow you to add 30 minutes to one date field after a different date field is filled out. This could be accomplished through a custom plugin. If you're interested in having this developed, please send a list of requirements to consulting@interactivetools.com and we can go over some options.
Hope this helps
When using the "strtotime" option, you only enter in the strtotime command. For example, if you enter
+30 minutes
the default value of the field will be 30 minutes more than the current time. So if you set the default value of "start_time" to be the current time, and use +30 minutes on "end_time", you would get the result your looking for.
There currently isn't an "onchange" event for date fields that you would allow you to add 30 minutes to one date field after a different date field is filled out. This could be accomplished through a custom plugin. If you're interested in having this developed, please send a list of requirements to consulting@interactivetools.com and we can go over some options.
Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/