Breaking News

Editors Picks

Friday, January 6, 2012

compare time in asp.net

 
        DateTime EndTime = Convert.ToDateTime(DateTime.Now);
        DateTime StartTime = Convert.ToDateTime("10:10");
        if (EndTime.TimeOfDay.Ticks > StartTime.TimeOfDay.Ticks)
        {
            MessageBox.Show("End Time not grater then Start Time");
        }

No comments :

Post a Comment

Contact Us

Name

Email *

Message *