I have a jQuery datepicker working, outputting to an altField in TIMESTAMP format. I'd like to add +1 day to the altField in order to encompass the day selected (but not show the +1 in the UI). I can't figure out how to implement this. My code looks like this:
$('#end_date').datepicker({
inline: true,
altField: 'input[name="event_start_date_max"]',
altFormat: '@',
onSelect : function(dateText, inst) {
var epoch = $.datepicker.formatDate('@', $(this).datepicker('getDate')) / 1000;
$('input[name="event_start_date_max"]').val(epoch);
}
});
If anyone can help out I'd appreciate it.