- date_default_timezone_set: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
date_default_timezone_set('America/Los_Angeles');
$currentDate = date('m/d/Y');
$start = strtotime('01-12-14');
$end = strtotime('02-12-14');
$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";
}