Thursday, May 01, 2025

Breaking News
>> Securing and encrypt View State and Cookies values  >> Page has one or more controls that do not correspond with   >> “The Controls collection cannot be modified because the control contains code blocks”  >> How to fix "Validation(): Element 'xxxx' is not supported  >> How to create a new session in ASP.NET programmatically  >> MySQL Database Backup using mysqldump command    

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 *