move datetime funciton to user input section