C
Charlotte
Hi,
is it possible to determine the first and the last day of a week (with
classic ASP)
nu = "06/01/2008"
week = (DatePart("ww",nu))
firstday = dateadd("d",(-datepart("w",date())),nu)
lastday = dateadd("d",(7-datepart("w",date())),nu)
response.write week
response.write "<br>"
response.Write firstday
response.write "<br>"
response.Write lastday
'week' must give me the number of the week for the date in 'nu'
'firstday' must give me the first date of that week
'lastday' must give me the last date of that week
it won't work
is there a way to do this?
thanks in advance
is it possible to determine the first and the last day of a week (with
classic ASP)
nu = "06/01/2008"
week = (DatePart("ww",nu))
firstday = dateadd("d",(-datepart("w",date())),nu)
lastday = dateadd("d",(7-datepart("w",date())),nu)
response.write week
response.write "<br>"
response.Write firstday
response.write "<br>"
response.Write lastday
'week' must give me the number of the week for the date in 'nu'
'firstday' must give me the first date of that week
'lastday' must give me the last date of that week
it won't work
is there a way to do this?
thanks in advance