in reply to Getting Today's Date - Strange Problem
Your "use" statement caused localtime() to return OBJECTS, instead of an array, which caused the errors you posted.
The previous monks answer is right on - you don't need the "use" statement.