Get Week # of current month (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


chadb -> Get Week # of current month (2/11/2008 11:11:46)

Is it possibe to get the current week number for the current month?




rdouglass -> RE: Get Week # of current month (2/11/2008 14:16:01)

Not directly that I'm aware of; you can get the week of the year but not the week of the month. But maybe something like this may work:

<%=Fix(DatePart("d",Date())/7)%>

That is just taking the whole number / integer part of the day of the month divided by 7. That would give you the "full week" number. If you wish to make the first 'partial week', just add 1.

That any help?




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
6.445313E-02