Posted on: 5/14/2013 1:00:13 PM | Views : 214

I have a page from where i m able to retrieve the Expiry date from the database using sqldatareader , the date is retrieved with the below format
Expiry Date  : 20/05/2013
I need to compare the dates in the textbox  so that if the expiry date is less than todays date , a logic will occur
im getting todays date by using the below :
 
DateTime theDate = DateTime.UtcNow; string custom = theDate.ToString("dd/MM/yyyy"); Todate.Text = custom; so the format will be : 14/05/2013
so what I need is to compare today's date with expriry date
any help please ?
...

Go to the complete details ...