Showing 1–12 of 24 results
} else { ?>
}
//end hide class////
//test
//$contractDateBegin = date('H:i:s', strtotime("09:15:00"));
//get todays day as an integer value
$whatDay = date('w');
//Our YYYY-MM-DD date string.
$date = date('H:i:s');
//Get the day of the week using PHP's date function.
$dayOfWeek = date("l", strtotime($date));
//0 is sunday
//1 is monday
//2 is tuesday
//3 is wednesday
//4 is thurday
//5 is friday
//6 is saturday
////////Testing section///////////
//Our YYYY-MM-DD date string
//$datetwo = "2019-03-16";
//$dayOfWeektwo = date("w", strtotime($datetwo));
//////////end testing////////
switch ($whatDay) {
case 0:
$contractDateEnd = date('H:i:s', strtotime("19:30:00"));
break;
case 1:
$contractDateEnd = date('H:i:s', strtotime("20:30:00"));
break;
case 2;
$contractDateEnd = date('H:i:s', strtotime("20:30:00"));
break;
case 3;
$contractDateEnd = date('H:i:s', strtotime("20:30:00"));
break;
case 4;
$contractDateEnd = date('H:i:s', strtotime("20:30:00"));
break;
case 5;
$contractDateEnd = date('H:i:s', strtotime("20:30:00"));
break;
case 6;
$contractDateEnd = date('H:i:s', strtotime("20:30:00"));
break;
}
/*if ( $whatDay == 1){
$contractDateEnd = date('H:i:s', strtotime("22:30:00"));
}
if ( $whatDay == 4){
$contractDateEnd = date('H:i:s', strtotime("22:30:00"));
}
if ( $whatDay == 5){
$contractDateEnd = date('H:i:s', strtotime("22:30:00"));
}
if ( $whatDay == 6){
$contractDateEnd = date('H:i:s', strtotime("22:30:00"));
}*/
//$paymentDate = date('H:i:s', strtotime("17:16:00"));
if (
($paymentDate > $contractDateBegin) &&
($paymentDate < $contractDateEnd)
//&& ($whatDay > 0 )
)
{
?>