Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date optimization code for verification
Message
 
À
14/04/2006 17:29:32
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01113804
Message ID:
01113815
Vues:
15
This message has been marked as the solution to the initial question of the thread.
What about:
ldDate1 = new date(date.today.year, 4, 1)

>In the following code, which creates a date value based on April 1st of the actual year, would there be a better way to achieve that:
>
>
>        ldDate1 = DateTime.Parse(Format(Date.Now, "01/04/" + Trim(Date.Now.Year) + " 00:00:00"))
>
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform