|
-
Aug 5th, 2000, 04:52 PM
#1
Thread Starter
Junior Member
How to determine the week number is the current month ?
I'd like to know for example if this week is the first, second, third... of the current month?
Thanks for your help )
-
Aug 5th, 2000, 05:06 PM
#2
transcendental analytic
Code:
Weekofmonth = int((day(YourDate)-weekday(now)-1)/7)+1
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.
-
Aug 5th, 2000, 05:54 PM
#3
Fanatic Member
-
Aug 5th, 2000, 06:15 PM
#4
transcendental analytic
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.
-
Aug 5th, 2000, 06:18 PM
#5
transcendental analytic
Wait a minute, that works this month but not next, the second week will start at thursday
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.
-
Aug 5th, 2000, 06:52 PM
#6
Fanatic Member
you're right. I didn't pay attention to that "little" detail
-
Aug 7th, 2000, 04:15 AM
#7
Thread Starter
Junior Member
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
|