I was wondering if it is possible to use PHP to figure out when a specific date it.
For example:
// Next week
$date->setDate(2014, 4, 3);
if($date->format('Y-m-d') == NEXT_WEEK){
// Do something
}elseif($date->format('Y-m-d') == NEXT_MONTH){
// DO something else
}elseif($date->format('Y-m-d') == NEXT_YEAR){
// Do something else
}
I understand my code won't work, but I am looking for something that would achieve something similar to that?