Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Manipulating Data Prior To Display
Message
From
20/12/2004 08:48:10
 
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00967471
Message ID:
00970583
Views:
25
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
Map
View

Click here to load this message in the networking platform