Min Of Date Time - CSharp System

CSharp examples for System:DateTime Calculate

Description

Min Of Date Time

Demo Code


using System.Globalization;
using System;// ww  w  .j  ava  2  s .  c  o m

public class Main{
        public static DateTime MinOfDateTime(this DateTime dateTime)
        {
            return new DateTime(dateTime.Year, dateTime.Month, dateTime.Day, 0, 0, 0);
        }
}

Related Tutorials