Current location: Hot Scripts Forums » Programming Languages » ASP » Show Week Number for month


Show Week Number for month

Reply
  #1 (permalink)  
Old 07-25-05, 02:59 AM
loeddie loeddie is offline
Newbie Coder
 
Join Date: Feb 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Show Week Number for month

Dear all,

If I would like to get the week number for month, let's say today is July 25, 2005, which is the fourth weeks for July, how can I get this number in ASP, thanks a lot!

Best Regards
Eddie
Reply With Quote
  #2 (permalink)  
Old 07-25-05, 05:26 AM
minority minority is offline
Wannabe Coder
 
Join Date: Jun 2005
Posts: 145
Thanks: 0
Thanked 0 Times in 0 Posts
you could take the number of days in the month and then divide it by 7 to work out.

if you need the specific week number for todays date i guess you would divide todays date by 7 this will give you the number of weeks (probably with a remainder) so you could say week 2 of 4 weeks in july

not sure if that is what you meant as your post isnt very clear and doesnt make clear sentences.

Is it the dates you want the number of weeks in a month/the current week number
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using number of the week dihan PHP 10 01-03-05 01:09 PM
Loop - Convert number into day of the week dihan PHP 12 06-30-04 04:28 AM
Need day of year from ISO-8601 week number. matt.simpson PHP 1 01-20-04 01:04 PM


All times are GMT -5. The time now is 03:29 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.