Today is September, 27 2016

Enter Date [mmddyy / mddyy] :

0){ $retVal = CheckDateDiff($_POST["pre_date"]); // Pass date in mmddyy or mddyy format to function.... if($retVal){ echo "

TRUE"; }else{ echo "

FALSE"; } } ?>

 

Developed By Majolee InfoTech for litening

-1)){ $diff_ts=($cur_ts-$pre_date); // Difference between current & entered timestamp if($debug){ // $debug true display following lines for debug echo "

"; echo "
Entered Date==> ".date("F, d Y",$pre_date)." [".$pre_date."]"; echo "
Current Date==> ".date("F, d Y",$cur_ts)." [".$cur_ts."]"; echo "
Different in timestamp==> ".$diff_ts.""; } if($diff_ts==$cur_ts){ // Difference & Current timestamp is same means enterd date is not valid... so return false... if($debug) echo "

Error..."; return false; }else{ if($diff_ts>=(4*24*60*60)){ // If difference is >= 4 days return false... if($debug) echo "

More than 4 days...[FALSE]"; return false; }elseif($diff_ts<(4*24*60*60)){ // If difference is <= 3 days return true... if($debug) echo "

Less than 4 days...[TRUE]"; return true; } } }else{ // Entered date is not valide so return false... if($debug) echo "

Date Entered is not Valid..."; return false; } }else{ // Date not entered by user return false... if($debug) echo "

Date Not Entered..."; return false; } } ?>