Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Usage of DayOfWeek
Message
De
05/05/2014 08:51:35
 
 
À
05/05/2014 08:44:30
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01599536
Message ID:
01599539
Vues:
64
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform