Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Days of the Week

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Days of the Week

    What is the syntax for days of the week?

    ie

    If (DateTime.DayOfWeek(2010, 9, 17) == "Friday")



    etc
    etc
    Last edited by Oil_Trader; 09-17-2010, 07:22 PM.

    #2
    something like this

    Code:
    if (DateTime.Now.DayOfWeek == DayOfWeek.Monday)
    {
        // do something
    }

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ageeholdings, Today, 07:43 AM
    0 responses
    7 views
    0 likes
    Last Post ageeholdings  
    Started by pibrew, Today, 06:37 AM
    0 responses
    4 views
    0 likes
    Last Post pibrew
    by pibrew
     
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    14 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    12 views
    0 likes
    Last Post burtoninlondon  
    Working...
    X