AdventCoding / Timespace

A jQuery plugin to handle displaying of time events
MIT License
29 stars 6 forks source link

Using dates verses years #2

Open roghellman opened 6 years ago

roghellman commented 6 years ago

If this is possible, I'm not sure how to use it. I would like to use specific dates for the start: object verses years. i.e July 4 1776 I've tried using start:new Date(2007,2,7) but receive an error.

AdventCoding commented 6 years ago

Currently, the plugin is not set up to handle date objects. You would have to use the year number for the start or end. But you can use a date string for the event title or description: title: 'July 4 1776' description: (new Date(2007, 2, 7)).toDateString()