Fix bug with minDate option and mistake Date.parse insted Date.parseDate

This commit is contained in:
Valeriy 2015-04-22 13:28:36 +05:00
parent 0103437140
commit 084332229e

View File

@ -63,7 +63,7 @@
<script>/* <script>/*
window.onerror = function(errorMsg) { window.onerror = function(errorMsg) {
$('#console').html($('#console').html()+'<br>'+errorMsg) $('#console').html($('#console').html()+'<br>'+errorMsg)
}*//* }*/
$('#datetimepicker').datetimepicker({ $('#datetimepicker').datetimepicker({
dayOfWeekStart : 1, dayOfWeekStart : 1,
lang:'en', lang:'en',
@ -95,16 +95,16 @@ $('#datetimepicker1').datetimepicker({
datepicker:false, datepicker:false,
format:'H:i', format:'H:i',
step:5 step:5
});*/ });
$('#datetimepicker2').datetimepicker({ $('#datetimepicker2').datetimepicker({
//yearOffset:222, yearOffset:222,
//lang:'ch', lang:'ch',
timepicker:false, timepicker:false,
format:'d/m/Y', format:'d/m/Y',
formatDate:'Y/m/d', formatDate:'Y/m/d',
minDate:'-1970/01/03', // yesterday is minimum date minDate:'-1970/01/02', // yesterday is minimum date
maxDate:'+1970/01/03' // and tommorow is maximum date calendar maxDate:'+1970/01/02' // and tommorow is maximum date calendar
});/* });
$('#datetimepicker3').datetimepicker({ $('#datetimepicker3').datetimepicker({
inline:true inline:true
}); });
@ -186,6 +186,6 @@ $('#datetimepicker12').datetimepicker({
}); });
$('#datetimepicker_dark').datetimepicker({theme:'dark'}) $('#datetimepicker_dark').datetimepicker({theme:'dark'})
*/
</script> </script>
</html> </html>