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; }
Amit GuptaPosted Oct 24, 2019, 8:14 AM
Jaimin ShethiyaPosted Oct 24, 2019, 3:57 AM
If you have stored only date then maybe not possible in date datatype passed in c# side.
or you can store date as a string datatype.
if you have used store procedure to insert a data then you can cast datetime as a date below is the example.
SELECT CAST(GETDATE() AS DATE) [Date].
Leah KunkiePosted Oct 24, 2019, 2:36 AM
Dinesh GabhanePosted Oct 24, 2019, 2:20 AM