Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Usage of DayOfWeek
Message
From
05/05/2014 08:51:35
 
 
To
05/05/2014 08:44:30
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01599536
Message ID:
01599539
Views:
63
This message has been marked as a message which has helped to the initial question of the thread.
>I had some code like this:
>
>
>        ' If this is a Sunday
>        If System.DayOfWeek.Sunday Then
>
>
>This did not work. Is this the proper requirement for such usage?
>
>
>        ' If this is a Sunday
>        If Date.Now.DayOfWeek = System.DayOfWeek.Sunday Then
>
Yes,

Date.Now.DayOfWeek gives a member of the DayOfWeek enum http://msdn.microsoft.com/en-us/library/system.dayofweek.aspx
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform