Create a date-picker from a text-input field