Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How can GET the column after removing the time part in model class

$
0
0

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


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>