Reputation: 317
$('#datetimepicker1').datetimepicker({ format: 'dd/mm/yyyy', pickTime:false})
when I used this code to pick date,it is picking minute instead of month.what might be the reason?
Upvotes: 3
Views: 237
Reputation: 4201
you should use MM:
$('#datetimepicker1').datetimepicker({ format: 'dd/MM/yyyy', pickTime:false})
see :MSDN Documentation on Js date formatting
Upvotes: 2