So, you have a page in ASP or a script of some kind that needs to be based on a Sunday. Here's a quick code snipped for "rounding" a date to the Sunday.
sundayThisWeek = Date() - Weekday(Date()) + 1
sundayNextWeek = sundayThisWeek + 7
sundayAfterNext = sundayNextWeek + 7
source:
http://www.codingforums.com/showthread.php?t=162987
Date portion, only:
todaysDate=now()
Response.write FormatDateTime(todaysDate,2)
http://www.codetoad.com/asp/format_date_time.asp
tags: asp, vbscript, visual basic, week,