PDA

View Full Version : Schedule with ASP


Sintsof
12-06-2002, 02:04 PM
Hello,
I want to make a schedule with asp. And i wanna when the schedule date will be 2 day later before today it must be warn me. But i don't know how can i write this. In asp this is possible.

(Sory my english is very loose. )
Thanks now...

Leeus
12-06-2002, 05:58 PM
If I understand correctly, ASP is run every time a page loads so to get this to work you would need the page to refresh every minute for example, I don't understand what you want the page to achieve though, using VB would be better for this sort of thing.

oracleguy
12-07-2002, 01:43 AM
From what it sonds like you are trying to do, use VB instead (like Leeus said). It would be more practical. That way you can just have the program run as a process in the background.

Sintsof
12-07-2002, 09:44 AM
I mean: Imagine i have a schedule. And it saved my db. For example:

Works Date
Clean db 12/12/2002
Add New Record 13/12/2002
Delete Old Records 14/12/2002

So when date be 10/12/2002 my code will warn me: 2 day later you should clean your db. And when be 11/12/2002 it will warn me: 2 day later you should add new record ....

Understand me?
:(

Sintsof
12-07-2002, 09:51 AM
I mean: Imagine i have a schedule. And it saved my db. For example:

Works Date
Clean db 12/12/2002
Add New Record 13/12/2002
Delete Old Records 14/12/2002

So when date be 10/12/2002 my code will warn me: 2 day later you should clean your db. And when be 11/12/2002 it will warn me: 2 day later you should add new record ....

Understand me?
:(

scroots
12-07-2002, 10:52 AM
i understand a little, although my scripting skill are not that good i will give it a go some time today.

scroots

Morgoth
12-08-2002, 06:42 PM
You are going to have ot use the "datediff()" function.

Here is an example,

DateDiff("d",#12/8/2002 12:41:18 PM#,#12/25/2002 12:00:00AM#)

That will equal 17, and here's why!

http://www.brinkster.com/Articles/ASP/General/Dates3.asp

Sintsof
12-09-2002, 12:11 PM
Thank you Morgoth;
I didn't try it yet. But i think this articles can help me.