I need to generate some specified date format with ASP.

For examples, using date() in ASP will output today's date:
9/26/00. But I need it in 2000-09-26 format. I also want to
generate some different date ranges, such as this week, last
week, this month etc.

I can do these with SQL sever, but I do not know how to do
it with ASP. Does anybody can help?

Many thanks.