Date picker field displayed incorrectly