strptime () converts a string containing the time / date, with the format passed as the second argument to the function. The return value is an array containing values ββfor the day, month, year, hour, minutes, and seconds; you can use these values ββto get a string representing the date in the format you like.
strptime () is available with PHP 5.1.0, and the DateTime class is available with PHP 5.2.0.
kiamlaluno
source share