Results 1 to 3 of 3

Thread: Calculate the week.....

  1. #1
    Guest

    Post

    How can we calculate the weeknumber from a date?
    Like (eurodate : 13/3/2000 "d/m/yyyy" )

    Does someone have a solution for it?

    -Kayoca

  2. #2
    Lively Member
    Join Date
    Jun 1999
    Posts
    120

    Post

    Use the DatePart function...
    for example:

    ***********
    Dim TheDate As Date ' Declare variables.
    Dim Msg

    TheDate = InputBox("Enter a date:")
    Msg = "Week No: " & DatePart("ww", TheDate)
    MsgBox Msg
    ***********





  3. #3
    Guest

    Post Thank You :)

    Thank you its working fine. And i wont forget the function now..

    -Kayoca Mortation

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