End of Day DateTime extension method to get the datetime

By [)ia6l0 iii

Add the seconds to DateTime object to get to the end of the day


        public static DateTime GetEndOfDay(this DateTime date)
        {
            return date.Date.AddSeconds(86399);
         }

End of Day DateTime extension method to get the datetime  (1694 Views)