Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Manipulating Data Prior To Display
Message
De
20/12/2004 08:48:10
 
 
À
20/12/2004 08:23:02
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00967471
Message ID:
00970583
Vues:
36
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
Fil
Voir

Click here to load this message in the networking platform