Make string cast behave in a way that's compatible with PEAR's Date::getDate(). Update getDate() to use faster format method since it is not using textual representations of date fields.
Make string cast behave in a way that's compatible with PEAR's Date::getDate(). Update getDate() to use faster format method since it is not using textual representations of date fields.

svn commit r59402

silverorange/swat,silverorange/swat