Saturday 15 May 2010

javascript - Fullcalendar : what format does event's 'start' property expect -



javascript - Fullcalendar : what format does event's 'start' property expect -

so started utilize fullcalendar , made progress on how manipulate events. however, not quite under stand how 'start' should set when initializing event. write code this

var event_data = { title: "this title", start: new date(y,m,d+2, 8) } calendar.addevent(event_data, true);

where y=new date().getfullyear() , on.

now want initialize event_data similar above, info know happens on this tuesday (not next tuesday) , starts on 14:00. how should initialize start time in case? in addition, maybe explain how utilize moment populate 'start' property?

thanks help!!!

you can set in start date, as:

var event_data = { title: "this title", start: new date(y,m,d+2, 14, 0, 0) } calendar.addevent(event_data, true);

js date() allows parameters date(year, month[, day[, hour[, minute[, second[, millisecond]]]]]);

javascript jquery fullcalendar

No comments:

Post a Comment