In my mvc application, i assign the Date to my view using DisplayFor Htmlhelper, like below. I tried to format like this. But, i am not successful.
@Html.DisplayFor(d => d.TravelAllowances.DepatureDate, "{0:dd-MM-yy}")
Please suggest me some way to accomplish this.
Note: DepartureDate is in String format.
Thanks Manikandan