'Covert numbered date to actual date
How would you convert this date below into an actual date format?
1652122994
Desired output (for example):
2022-05-11
Solution 1:[1]
You can do something like this...
<?php
$timestamp=1652122994;
echo gmdate("Y-m-d", $timestamp);
?>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Anas Abdullah Al |
