<?php $now = strtotime('now'); $start = strtotime('1 January 2021'); $end = strtotime('31 January 2021'); if ($now >= $start && $now <= $end): echo 'true'; else: echo 'false'; endif; echo "\n"; $now = strtotime('now'); $start = strtotime('1 November 2020'); $end = strtotime('31 January 2021'); if ($now >= $start && $now <= $end): echo 'true'; else: echo 'false'; endif;
You have javascript disabled. You will not be able to edit any code.