Max Of Date Time - CSharp System

CSharp examples for System:DateTime Calculate

Description

Max Of Date Time

Demo Code


using System.Globalization;
using System;//  w  w  w  . j a  v a2s.c o  m

public class Main{
        public static DateTime MaxOfDateTime(this DateTime dateTime)
        {
            return new DateTime(dateTime.Year, dateTime.Month, dateTime.Day, 23, 59, 59);
        }
}

Related Tutorials