Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date optimization code for verification
Message
 
To
14/04/2006 17:29:32
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01113804
Message ID:
01113815
Views:
13
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform