Possible Duplicate:
How can I specify the latest time of day with DateTime
I need to compare a date range and am missing rows who's date is the upper comparison date but the time is higher than midnight. Is there a way to set the upper comparison's time to 23:59:59?
This is a possible solution:
yourDateTime.Date.AddHours(23).AddMinutes(59).AddSeconds(59);
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