Switch from date field to text field