Author: MonkeyMan | Posted on: 1/13/2009 4:40:56 AM | Views : 281

Hiya,

 I have an Access datasource with a date in it which is pulled into a formview.  I want to compare the date in the formview with todays date.  The date is displayed as "18/01/2009" but when placed into a variable it goes to "01/01/0001".

 My code is:  Label lblExpDate = (Label)fvwRequest.FindControl("txtExpiryDate");
DateTime expDate = DateTime.Parse(lblExpDate.Text);
 I seem to be looking at this for too long now and don't seem to be getting anywhere.  Can anyone help?

 Thank you in advance

 

Andy
...

Go to the complete details ...