|
-
Mar 12th, 2000, 04:34 PM
#1
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
-
Mar 12th, 2000, 04:46 PM
#2
Lively Member
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
***********

-
Mar 12th, 2000, 05:35 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|