To Start Of Day - CSharp System

CSharp examples for System:DateTime Day

Description

To Start Of Day

Demo Code



public class Main{
        public static DateTime ToStartOfDay(this DateTime dt)
        {/* ww w.ja va  2  s.  c  o  m*/
            return new DateTime(dt.Year, dt.Month, dt.Day, 0, 0, 0);
        }
}

Related Tutorials