I need check string, whether that string is in format of
date("h:i A") - date("h:i A")
(ex:6:00 AM- 3:00 PM)
How to check string is in correct format or not?
I need a function logic, like if it is not formatted correctly,return false otherwise true