PDA

View Full Version : Is it possible to code...


Chimpie
02-15-2009, 05:30 PM
Is it possible to code a message to appear on a certain day, and either just erase or change the next day?

For example, on Monday I want it to say, "There will be a meeting at 12:00 PM." and on Tuesday it would say, "We will be closing the office at 3:00PM today." ... setting up these messages in advance so that at midnight on Monday (morning) the first message would appear and then 24 hours later the second message would appear.

Did that make sense?

Lynne
02-15-2009, 05:40 PM
Notices allow you to set a date and time.

Chimpie
02-15-2009, 05:47 PM
I apologize. I should have included this in the above.

I'm wanting to make a vBa module with the information in it.

Lynne
02-15-2009, 05:51 PM
You should probably ask this on their site then.

Chimpie
02-15-2009, 05:53 PM
I could, but I'm asking just a general php/html question, not a vBa question.

UKBusinessLive
02-15-2009, 06:43 PM
I could, but I'm asking just a general php/html question, not a vBa question.

Like Lynne says, Notices does it all for you, all the PHP and HTML ;) so easy :D

Dismounted
02-16-2009, 04:53 AM
Use the date()/time() function to generate a date and compare it to the the dates you want.

Chimpie
02-16-2009, 12:20 PM
Use the date()/time() function to generate a date and compare it to the the dates you want.

I'm sorry. I don't understand what you're suggesting.

Dismounted
02-17-2009, 04:53 AM
if (date('N') == 1)
{
// it is monday today
}