I am using properties in the model class as given below.
C#
[Display(Name = "Start Date")]
[DataType(DataType.DateTime)]
public string startDate { get; set; }and getting the date format as "2022-07-27T18:20" but I want the DateTime format as "Tue Jul 26 2022 16:42:01 GMT+0530".
Please suggest a way to achieve this DateTime format.


Vishal YelveRank #178 · 13.6K reputationPosted Jul 27, 2022, 10:02 AM EDT