I allow users to select an hour from 00:00:00 to 23:00:00 and check if they send the correct format. Is there a regular expression or php function that checks the 24 hour format, for example. HH:MM:SS ?
I have found some examples of regular expressions, but the 24-hour time that I check is always set to 00 for minutes and seconds. Only the hour is changing.
for example
18:00:00, 23:00:00, 01:00:00
date php time
Cyberjunkie
source share