Sribin
Sribin

Reputation: 317

Datepicker date formatting return minute instead of month

$('#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

Answers (1)

Ori Price
Ori Price

Reputation: 4201

you should use MM:

$('#datetimepicker1').datetimepicker({  format: 'dd/MM/yyyy',  pickTime:false})

see :MSDN Documentation on Js date formatting

Upvotes: 2

Related Questions