DateTime extension method to get the datetime of Start of Day
By [)ia6l0 iii
Use the DateTime object's 'Date' property to return the beginning of the day
public static DateTime GetStartOfDay(this DateTime date)
{
return date.Date;
}
DateTime extension method to get the datetime of Start of Day (800 Views)