strtotime() works fine if you can provide it with a date format that it understands and can convert, but, for example, you give it a date in the UK, it cannot give the correct unix timestamp.
Is there any PHP function, official or unofficial, that can accept a format variable that tells the function in which format the date and time are transmitted?
The closest I came to is a mixture of date_parse_from_format() and mktime()
Brady source share