Jump to content

*SOLVED* Date triggered event...


jcbarr

Recommended Posts

Okay I know how to set the default date timezone and echo the date and all of that, but I am having some issues with comparing the current date with a deadline that I have set.

I want a variable to have a different value depending on what date and time it is currently...

So basically I want to do something like;

if the current date and time is greater than November 3rd 11:59pm 2006 then variable is equal to...

Hope that makes sense...

Thanks for the help everyone.
Link to comment
https://forums.phpfreaks.com/topic/26060-solved-date-triggered-event/
Share on other sites

Solved it. It was easier than I thought since the deadline that I was setting was 11:59pm, so as soon as it tickes over to the next day. Just convert the deadline day to seconds and then comapre that with the current time.

Pretty simple, thanks for pointing me to that manual page. It will help in the future I am sure.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.