Start Of Day - CSharp System

CSharp examples for System:DateTime Day

Description

Start Of Day

Demo Code


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;
      }
}

Related Tutorials