Added support for custom date formats (for you europeans out there).