# ASP  How to get a date into a date object so I can work on it.

**URL:** <https://boards.straightdope.com/t/asp-how-to-get-a-date-into-a-date-object-so-i-can-work-on-it/467776>\
**Category:** Factual Questions\
**Created:** [October 13, 2008, 9:00pm UTC](https://boards.straightdope.com/t/asp-how-to-get-a-date-into-a-date-object-so-i-can-work-on-it/467776 "2008-10-13T21:00:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lobsang](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lobsang/32/4067_2.png) [@Lobsang](https://boards.straightdope.com/u/Lobsang)\
**Post date:** [October 13, 2008, 9:00pm UTC](https://boards.straightdope.com/t/asp-how-to-get-a-date-into-a-date-object-so-i-can-work-on-it/467776/1 "2008-10-13T21:00:31Z")

</div>

I’ve been googling the hell out of this and it’s irritating the life out of me because everything talks about working on ‘today’ and ‘now’.

I want to supply the !"£)\*(&&ing date (GRRR) how hard is that to understand TUTORIALISTS???

For example. in ASP if I wanted to find out what the date was seven days prior to the 12th of July 2006 how do I do it simply in ASP?

---

<div class="post-metadata">

**Author:** ![Lobsang](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lobsang/32/4067_2.png) [@Lobsang](https://boards.straightdope.com/u/Lobsang)\
**Post date:** [October 13, 2008, 9:19pm UTC](https://boards.straightdope.com/t/asp-how-to-get-a-date-into-a-date-object-so-i-can-work-on-it/467776/2 "2008-10-13T21:19:59Z")

</div>

Doesn’t matter.

I got it eventually…

tempDate = cDate(mm & " " & dd & " " & yy) - 6
