On Sat, Mar 27, 2010 at 10:26 PM, Gary <gwpaul@xxxxxxx> wrote: > [...] > > strtotime('$pay_date')); > > [...] > If you want the value of $pay_date to be the argument of strtotime, you need to enclose it in double quotes (do the same for all other occurrences). Try: strtotime("$pay_date"); [...] When a string <http://www.php.net/manual/en/language.types.string.php> is specified in double quotes or with heredoc, variables<http://www.php.net/manual/en/language.variables.php>are parsed within it. [...] from: http://php.net/manual/en/language.types.string.php Beginning of Variable Parsing Section