In my model class
public DateTime? ClockDateTime { get; set; }
[NotMapped]
public string ClockDateFormatted { get { return String.Format("{0:dd/MM/yyyy}", ClockDateTime); } }
// I want to change string ClockDateFormatted into datetime ClockDateFormatted how that would be possible please can you advise . I want to return the formatted value as datetime format rather than string. Please can you help