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);
Use MongoDB\BSON\UTCDateTime MongoDate is deprecated
$mongoDate = new \MongoDB\BSON\UTCDateTime(strtotime('2020-10-01 18:30:00'));