Fixed bug with date formats in the date text input

See issue #23