My website uses the following code:
$a1="1293011062"; // hex code umm i think !
$expires = date('M d, Y', $a1);
echo $expires; // Output Dec 22, 2010
How can I do the reverse operation? That is, what if i want to convert Apr 06, 2012 to hex, the way it’s represented in a1?
You can use strtotime: https://www.php.net/strtotime and that isn’t hex