Is there any easy way to check to see if the time part of the DateTime
value is NULL other than checking hour is 0, min is 0 and sec is 0?
Thanks.
I find this very readable:
var isTimeNull = (myDateTime.TimeOfDay == TimeSpan.Zero);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With