There are three variables that contain these values:
$now=strtotime(date('dmY H:i')); $startdate = 10-04-2016 09:00; $finishdate = 15-05-2016 09:00; $finishdate = strtotime($finishdate); $startdate = strtotime($startdate); You need to write a condition that checks whether the current date is between the start date and the end date or not. Wrote as follows:
if(($startdate<=$now) && ($now<=$finishdate)){ echo 'Начат'; }else{ echo "Не начат"; }; But this does not work, more precisely, all the time "not started"
var_dump(strtotime('10-04-2016 09:00'));I get a normal result, which I can already verify withtime()- BOPOH