How to change time and date format in the submission form