Question and answer is powered by AnsPress.io
In PHP I want to check if the current time is between two given times. How can I check it?
If my date will like that:
$startDate= "12:00:00"; $endDate="13:10:00" $currentDate=date("H:i:s");
Apply this code:
<?php if($startDate < $currentDate && $endDate > $currentDate){ // Echo something }else{ // Echo something } ?>