Force date format to be same as javascript datepicker

Fixes #514

Signed-off-by: Michal Čihař <michal@cihar.com>