Get first day of week?

T

Targa

Need to print "Week of (first day of week)"
First day being Monday.

ie:
week = Request.querystring("mydate")
response.write "Week of" & week

If week = 5/6/2004 (which is Thursday) it should output "Week of Monday, May
03, 2004"

How can I do this?

Thanks!
 
D

dlbjr

'From dlbjr

Function GetPriorMonday(dtmDate)
GetPriorMonday = "NAD"
If IsDate(dtmDate) Then
intAdjust = WeekDay(dtmDate,2) - 1
GetPriorMonday = DateAdd("d",- intAdjust,dtmDate)
End If
End Function
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,241
Latest member
Lisa1997

Latest Threads

Top