If the user does not provide a date, the task will be set to the current day's date.