How to get the week number ?
How to get the week number ?
(OP)
Hi,
Is their a way to get the week number?
Thanks
Is their a way to get the week number?
Thanks
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS Contact USThanks. We have received your request and will respond promptly. Come Join Us!Are you a
Computer / IT professional? Join Tek-Tips Forums!
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting Guidelines |
How to get the week number ?
|
Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.
Here's Why Members Love Tek-Tips Forums:
Register now while it's still free!
Already a member? Close this window and log in.
RE: How to get the week number ?
seconds := @now - @date(@year(@today);1;1)
Then transform into days :
days := seconds / 86400
then into weeks :
weeks := @integer(days / 7)
Pascal.
RE: How to get the week number ?
But If the first day of the year doesn't begin a monday the result isn't good.
I found some things about this here :
http://www.keysolutions.com/NotesFAQ/howweek.html
RE: How to get the week number ?
Pascal.