How to check days?

Discussion in 'ASP General' started by dave, Jun 18, 2004.

  1. dave

    dave Guest

    Hi
    How can I check if today is Sunday or Saturday and put it
    into If EndIf condition.
    Thanx
    dave
     
    dave, Jun 18, 2004
    #1
    1. Advertising

  2. dave

    dave Guest

    sorry for posting
    I got the solution..
    thanx
    dave
    >-----Original Message-----
    >Hi
    >How can I check if today is Sunday or Saturday and put

    it
    >into If EndIf condition.
    >Thanx
    >dave
    >.
    >
     
    dave, Jun 18, 2004
    #2
    1. Advertising

  3. dave

    dlbjr Guest

    Sub Process(date1)
    If IsDate(date1) Then
    Select Case DatePart("w",date1)
    Case 1 'Sunday
    'Do Something
    Case 2 'Monday
    'Do Something
    Case 3 'Tuesday
    'Do Something
    Case 4 'Wednesday
    'Do Something
    Case 5 'Thursday
    'Do Something
    Case 6 'Friday
    'Do Something
    Case 7 'Saturday
    'Do Something
    End Select
    End If
    End Sub

    -dlbjr

    Discerning resolutions for the alms
     
    dlbjr, Jun 18, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Stockwell
    Replies:
    2
    Views:
    704
    Anna Martelli Ravenscroft
    Sep 20, 2004
  2. Gerrit
    Replies:
    0
    Views:
    391
    Gerrit
    Sep 20, 2004
  3. Terry Reedy
    Replies:
    0
    Views:
    431
    Terry Reedy
    Sep 20, 2004
  4. Replies:
    5
    Views:
    472
    Bo Yang
    Nov 2, 2006
  5. kirke

    list of days between two days

    kirke, Oct 19, 2006, in forum: Javascript
    Replies:
    7
    Views:
    140
    Julian Turner
    Oct 20, 2006
Loading...

Share This Page