$('myScheduler').scheduler('value', {
startDateTime: '2014-03-31T03:23+02:00',
timeZone: {
name: 'Namibia Standard Time',
offset: '+02:00'
},
recurrencePattern: 'FREQ=MONTHLY;INTERVAL=6;BYDAY=WE;BYSETPOS=3;UNTIL=20140919;'
});
*Outputs date as: 03/30/2014 in my date picker in Schedule.
Why am I getting 30 instead of 31 for day?
I do get the correct date, 03/31/2014
, in the datepicker input within the scheduler with the following (I added the pound sign):
$('#myScheduler').scheduler('value', {
startDateTime: '2014-03-31T03:23+02:00',
timeZone: {
name: 'Namibia Standard Time',
offset: '+02:00'
},
recurrencePattern: 'FREQ=MONTHLY;INTERVAL=6;BYDAY=WE;BYSETPOS=3;UNTIL=20140919;'
});
However, due to the default datepicker behavior being "do not allow past dates," the day is crossed out on the datepicker calendar. What culture are you using with momentjs? I noticed you are looking for the ISO 8601 date format.