I have bin searching around alot after to preset a hour and minutes in http://trentrichardson.com/examples/timepicker/ datetimepicker, but still I cant get it working.
var start = $('#eventStart').datetimepicker({
dateFormat: "yy-mm-dd",
hour: 12,
minute: 15,
stepMinute: 15
});
and my inputfeald is an ordenary
My question is how to set a time like 12:15 with the current selected date from my fullCalendar
select: function(start, end, allvDay) {
$('#eventStart').datepicker("setDate", new Date(start));
$('#eventEnd').datepicker("setDate", new Date(end));
$myCalendar.fullCalendar('unselect');
$("#calEventDialog").dialog("option", "title", "Add Event");
$('#calEventDialog').dialog('open');
},
I getthis print in firebug "Error parsing the date string: Extra/unparsed characters found in date: 12:15"
anyone that can help me out,
//Tobias
I guess the problem with your date time format .
Date time picker function taking the hours and minutes given by you and while parsing the date ,you didn't mention the corresponding fields in the format .
Please try change your date format to "yy-mm-dd HH:mm"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With