Get Day End - CSharp System

CSharp examples for System:DateTime Day

Description

Get Day End

Demo Code


using System.Threading.Tasks;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;//from   w  w  w .ja  v a2  s  . c  om

public class Main{
        public static DateTime GetDayEnd(DateTime time)
        {
            return new DateTime(time.Year, time.Month, time.Day, 23, 59, 59);
        }
}

Related Tutorials