PHP Date Range

$dateStart = mktime(0, 0, 0, 11, 24, 2016); $dateEnd = mktime(0, 0, 0, 11, 28, 2016); if (time() < $dateEnd && time() > $dateStart){ // DO STUFF }
If today's date falls within date range.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.