- date_default_timezone_set: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
date_default_timezone_set('America/Los_Angeles');
$currentDate = date('Y/m/d');
$start = strtotime('2013-12-25');
$end = strtotime('2013-12-26');
$timestamp = strtotime($currentDate);
if($timestamp >= $start && $timestamp <= $end) {
echo "The date $currentDate is within our date range\n";
} else {
echo "The date $currentDate is NOT within our date range\n";
}