Results 1 to 4 of 4

Thread: Day of Week

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Location
    london
    Posts
    31
    Can anybody please tell me how i can find out what day of the week its is from a date string.
    Thanks

    dave
    D Stonebanks

  2. #2
    Addicted Member
    Join Date
    Jan 2000
    Location
    Oshkosh, WI
    Posts
    163

    Thumbs up

    You can use the format function to get the numeric day of the week with the following code:

    Code:
    dim dayofweek as string
    
    dayofweek = format$(now(),"w")
    After this runs day of week will contain 1-7 for Sunday - Saturday.

  3. #3
    Member
    Join Date
    Jul 1999
    Posts
    42
    Use VB function WeekDay():

    i = WeekDay(SomeDate)

  4. #4
    Addicted Member
    Join Date
    Jan 2000
    Location
    Oshkosh, WI
    Posts
    163

    Talking

    There just too many functions to remember them all. Alfred is definitely correct the weekday function is what you want.
    Glenn D
    Development/Analyst

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width