Results 1 to 5 of 5

Thread: quick question (i hope)

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Posts
    25

    Question


    How do I retrieve the day of the week, long or short format?

  2. #2
    Lively Member
    Join Date
    Jun 2000
    Posts
    82
    format$(date,"dd") or Day(Date) will return the short form
    format$(date,"dddd") will return the long
    Andrew Empson
    vb6(ent) SP4

  3. #3
    Addicted Member jcouture100's Avatar
    Join Date
    Aug 1999
    Posts
    141
    Assume the current date is Thursday, 29 June 2000.
    Code:
    strDay = Format(Now, "ddd")  'This will give you "Thu"
    strDay = Format(Now, "dddd") 'This will give you "Thursday"
    Hope this helps.
    JC

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    you can use weekday function to return a number 1=sunday 2=monday...
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Posts
    25

    Thanks alot for all your help!!

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