Updated CreateOnEnter and NewAttributes functions to accomodate the date input