Equals Date To The Minute - CSharp System

CSharp examples for System:DateTime Minute

Description

Equals Date To The Minute

Demo Code


using System;/* w ww. jav  a2  s  .  c o m*/

public class Main{
        public static bool EqualsDateToTheMinute(DateTime one, DateTime two)
        {
            return
                one.Year == two.Year &&
                one.Month == two.Month &&
                one.Day == two.Day &&
                one.Hour == two.Hour &&
                one.Minute == two.Minute;
        }
}

Related Tutorials