Update date parsing and formatting
see http://trac.agavi.org/wiki/RFCs/Ticket964
closes #964