I would like to propose a new StartTimeOfDay property that contribute for readability.
e.g.
private static void Main()
{
var now = DateTimeOffset.Now;
var midnight = now - now.TimeOfDay;
}
to
private static void Main()
{
var midnight = DateTimeOffset.Now.StartTimeOfDay;
}
I don't want to make extention methods in 'DateUtil' class.
I would like to propose a new
StartTimeOfDayproperty that contribute for readability.e.g.
to
I don't want to make extention methods in 'DateUtil' class.