I need to validate the date and time in the format MM/DD/YYYY HH:MM AM/PM. I used the below code,
dateTimeFormat = datetime.now().strftime(\'%m/%d/%Y %I:%M %p