For some reason the date format is not passing to my view, I have used the following in my model:-
using System.ComponentModel.DataAnnotations;
[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
public DateTime? Date { get; set; }
then in my view
@model.Date
and the output in the browser is
20/11/2013 00:00:00
it always adds the "00:00:00" even though time is not on the sql field and ive applied formatting to it.
does anyone know whats up?
Thanks