Click-draggable. Range-makeable. A better calendar.
new Timeframe(element, options);
months
2
).format
%b %d, %Y
). (With Datejs, it takes Datejs formatting.)weekOffset
1
to start the week on Monday).startField
, endField
input
tags (by default, these are generated with the Timeframe).previousButton
, todayButton
, nextButton
, resetButton
earliest
, latest
Date
object or a String
that can be parsed with Date.parse()
).maxRange
1
to turn Timeframe into a regular old date picker).Drop in a localized version of Datejs, and it should just work. An added bonus is that the text fields will live-parse more nicely! Just try “next tues.”