Leah Kunkie

Leah Kunkie

  • NA
  • 44
  • 3.7k

Remove time from showing on DateTime.

Oct 24 2019 1:59 AM
I have tried the below but still I still have the time showing on my reports, what else can i try? I want the date only to show.
 
[DataType(DataType.Date)]
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
public DateTime? StartDate { get; set; }
[DataType(DataType.Date)]
public DateTime? EndDate { get; set; }
 

Answers (4)