Wrong date format displayed
I am trying to display date in this format dd/MM/yyyy
Model addnotations
[DataType(DataType.Date)]
[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode
= true)]
instead I am getting date in format dd-MM-yyyy I have also tried
dd.MM.yyyy which works fine.Anything works fine except desired result...
No comments:
Post a Comment