Fixed bug with date formatting. Kudos to Matteo Iannizzotto for the catch!