How do i set maximum or minimum date? Like for instance, i want to limit my daypicker only for the last 2 month (min date) until today (max date). So the user can't choose tomorrow's date. Thanks
You need to use the disabledDays
property. It can be passed a set of modifiers as detailed at http://react-day-picker.js.org/docs/modifiers
The following should do what you need:
var twoMonthsAgo = new Date();
twoMonthsAgo.setMonth(twoMonthsAgo.getMonth() - 2);
<DayPicker disabledDays={
{
before: twoMonthsAgo,
after: new Date()
}} />