Sorry, me again.
I have got it to compile without errors now.
>s1 = s1.Substring(s1.Length() - 9);
This was fixed by removing the brackets after .Length
I also had to define the d1 and d2 properties with
System.DateTime d1, d2;
Unfortunately, the ASP page now crashes every time on the line
d2 = DateTime.Parse(s1);
I *think* that the Parse method is expecting the s1 string to be in the format "20/12/04" rather than "20-Dec-04"? Is this the case, and if so, how do I deal with my date formats?
TIA, Kevin
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only