brospars / simple-calendar

Simple calendar jquery plugin
https://brospars.github.io/simple-calendar
MIT License
49 stars 38 forks source link

date format #29

Closed antonhilman closed 4 years ago

antonhilman commented 4 years ago

heres my event, is't correct format? events: [   { startDate: 2020-08-05, endDate: 2020-08-10, summary: 'lorem ipsum 1' } , { startDate: 2020-08-07, endDate: 2020-08-10, summary: 'lorem ipsum 2' } , { startDate: 2020-08-09, endDate: 2020-08-09, summary: 'lorem ipsum 3' } ],

brospars commented 4 years ago

Events are inserted using new Date() (equivalent to Date.parse()). This function require a date string (you need to add quotes) and it's recommended to use the ISO format. More info here.

brospars commented 4 years ago

Closing since no update.