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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement