Friday, 6 January 2012

compare time in asp.net

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

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Powered by Blogger