CSharp examples for System:DateTime Day
To Start Of Day
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); } }