I'm building a simple time tool (php, mysql, js) that takes the current date and time (both formatted and raw unix timecode) and provides sliders that allow people to add time to an event. There are three units, days, hours and minutes. Clicking on up or down arrows is adding the appropriate time to a hidden "timecode" field.
The fields for startdate, start time and am/pm are also editable, so users can select a different start date than right now.
What I need to do now is trigger an ajax action every time one of these controls is pressed to ideally pull together the start date, start time, am/pm and the "timecode" value to output two values: the updated timecode for the end date, and a clean formatted end date for display "April 15, 2010 at 10:00pm". What would the best way to do this be?