I'm currently using the jQuery datetimepicker add-on from here
It works just about perfectly, but I'm stumped on how to add a small bit of functionality to it. I currently have two instances on a page, one for start-time and one for end-time. When I choose a start-time, I'd like to automatically fill in the end-time with the start time + 1 hour.
Can this be accomplished without extending the core script at all?
There is a Get and Set Datetime function shown near the bottom of the page.
Could you use that? Or course you'll have to add an hour to the getDate.
yes, it extends the JQuery-UI Datepicker which has different callbacks to handle a selection
you can check out the onSelect documentation and use it on your timepicker
The following will add one hour to the end-time datepicker.