To End Of Day - CSharp System

CSharp examples for System:DateTime Day

Description

To End Of Day

Demo Code



public class Main{
        public static DateTime ToEndOfDay(this DateTime dt)
        {/* w w w .j a v a2 s.  c o  m*/
            return new DateTime(dt.Year, dt.Month, dt.Day, 23, 59, 59);
        }
}

Related Tutorials