Fix ticket #1166: The DateTextBox widget expects a date object or string conforming to 'yyyy-mm-dd'