From: jason Date: Fri, 11 Apr 2008 22:48:20 +0000 (-0400) Subject: added today_ymd() X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=32b4fd4aceee647903709bd26e02331d36a8b08e added today_ymd() --- diff --git a/misc.php b/misc.php index 5678b67..e604e61 100644 --- a/misc.php +++ b/misc.php @@ -33,6 +33,10 @@ function this_month() { return ereg_replace('^0', '', strftime('%m')); } +# return today's date in yyyy-mm-dd format +function today_ymd() { + return strftime('%Y-%m-%d'); +} # php4 is broken, in that you cannot set a default value for a parameter that # is passed by reference. So, this is set up to use the following screwy