navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Working with Dates

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Working with Dates
Page: [1]
 
mutestar21

 

Posts: 48
Joined: 1/28/2002
From:
Status: offline

 
Working with Dates - 6/17/2002 16:18:16   
Quick question about dates in ASP...

I have a product which expires after 6 weeks of a start date. Anyone have any suggestions how I would send the user a reminder after 5 weeks. I know how to work with ASPMail...that part is now problem.

The issue is working with the date fields.
How would I check if today's date is more than 5 weeks later than the start date in the db???

Thanks,
Bryan

Vince from Spain

 

Posts: 658
From: Madrid Spain
Status: offline

 
RE: Working with Dates - 6/18/2002 15:39:31   
You can add and subtract dates in ASP, so for instance you could have a query like
sSQL="SELECT * FROM mytable WHERE datefield < #" & Date()-35 & "#"
(ie 35 being 35 days -> 5 weeks)
On SQL Server (as opposed to Access) the syntax would be
sSQL="SELECT * FROM mytable WHERE datefield < '" & Date()-35 & "'"

Vince

http://www.ibswebdesign.com/

(in reply to mutestar21)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Working with Dates
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts