How in PHP do I get the regular timestamp format out of a MongoDB date?
PHP
MongoDB
Assume I have:
$my_date; print_r($my_date);
Just a quick update, to say that MongoDate has a toDateTime method since the version 1.6 of the pecl extension. You can now do
$mongoDate->toDateTime()->format(...)