JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added today_ymd()
[wfpl.git] / misc.php
index 5678b67..e604e61 100644 (file)
--- 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