Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting a string to a date
Message
 
À
20/05/2003 09:53:51
Philip Jones
Cornwall County Council
Truro, Royaume Uni
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00790426
Message ID:
00790680
Vues:
16
Hey Philip
I have an ASP page that validates a date after it is input. I am sure you could modify it to limit it to NO future dates if you are comfortable with Javascript in ASP. The code validates the any of 3 formats, leap year, 2 or 4 digit year, and century. it is a little to large to put on this thread. If interested, I will send to you by email.

Chuck

>Hi,
>I want to validate a date so that I can be sure that the user hasn't entered a future date.
>The date is held in 3 fields. One holds the day, one the month and the other the year.
>If I concatenate the values of the fields with "/" so that I get a string with (for example) "23/06/2003" how can I than convert it to a date so that I can check it against the current date?
Extreme Programming = Plan -> Design -> Code -> Test
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform