implemented reset button and create a new function to get just the date without time for logdate imput