First tick of the day. - CSharp System

CSharp examples for System:DateTime Day

Description

First tick of the day.

Demo Code


using System;// w  w  w. ja v a 2 s . c o m

public class Main{
        /// <summary>
        ///     First tick of the day.
        /// </summary>
        /// <param name="date">The date.</param>
        /// <returns></returns>
        public static DateTime DayMin(this DateTime date)
        {
            return date.Date; // minimum of this day
        }
}

Related Tutorials