I have a following string:
$time = "01/01/2015"; // format is m/d/Y
I want to convert it to an integer value using strtotime() function so that I can compare it with another date. This is the integer value that I get after I convert it to string:
strtotime($time); // Gives me => int(1420092000)
My Question:
Looking at the above format of time string, how will the strtotime() function know that the format of the string is "m/d/Y" or "d/m/y"? Do I have to specify the format in strtotime() function as a second parameter if that is possible?