I need to display the date in '12JAN2015 ' format if current date is 12th January 2015 in mvc 4 .Is it possible?
Asked
Active
Viewed 93 times
-2
-
What did you tried? Try this [DataType(DataType.Date)] [DisplayFormat(DataFormatString="{0:dd-MMM-yyyy}", ApplyFormatInEditMode=false)] public DateTime TestDate { get; set; } – Prasad Kanaparthi Sep 14 '15 at 08:24
-
A little bit of googling would have helped. – Niar Sep 14 '15 at 10:01