Answers for "DateTime and Timestamps"

PHP
1

DateTime and Timestamps

$dateTime = new DateTime('2016-05-20');
echo $dateTime->getTimestamp();

# Output: 1271802325
Posted by: Guest on February-24-2021

Browse Popular Code Answers by Language