diff --git a/doc.tpl b/doc.tpl index 5c586a8..49e3cc8 100644 --- a/doc.tpl +++ b/doc.tpl @@ -182,6 +182,26 @@ $('#_datetimepicker6').datetimepicker({ }); }); + +

minDate and maxDate Example

+

JavaScript

+
$('#datetimepicker7').datetimepicker({
+	timepicker:false,
+	formatDate:'Y/m/d',
+	minDate:'-1970/01/02',//yesterday is minimum date(for today use 0 or -1970/01/01)
+	maxDate:'+1970/01/02',//and tommorow is maximum date calendar,
+});
+

Result

+

+

Full options list

@@ -271,6 +291,7 @@ $('#_datetimepicker6').datetimepicker({ @@ -279,6 +300,7 @@ $('#_datetimepicker6').datetimepicker({
{minDate:0,} // today
 {minDate:'2013/12/03'}
+{minDate:'-1970/01/02'} // yesterday
 {minDate:'05.12.2013',formatDate:'d.m.Y'}
{maxDate:0,}
 {maxDate:'2013/12/03'}
+{maxDate:'+1970/01/02'} // tommorrow
 {maxDate:'05.12.2013',formatDate:'d.m.Y'}