I need to get data and format then return the true or false to check is the passed data have required date-format!
for example
var_dump(validateDateTime('Tue, 28 Feb 2012 12:12:12 +0200', 'D, d M Y H:i:s O')); # the return value should be true
I want to validate the date in all formats,by getting the date and format and then return the result (true or false)
I still have this problem, any suggestion ?
You can add the following function to your application
then you can use it like so