added options for disabling clearing the date on enter