CSharp examples for System:DateTime Day
Start Of Day
using System.Collections.Generic; using System;//from www . ja v a 2 s . c o m public class Main{ public static DateTime StartOfDay(this DateTime? processDate) { return !processDate.HasValue ? DateTime.MinValue : processDate.Value.StartOfDay(); } public static DateTime StartOfDay(this DateTime processDate) { return processDate.Date; } }