From 32b4fd4aceee647903709bd26e02331d36a8b08e Mon Sep 17 00:00:00 2001 From: jason Date: Fri, 11 Apr 2008 18:48:20 -0400 Subject: [PATCH] added today_ymd() --- misc.php | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 1.7.10.4