Converting a Timestamp to a Readable Date in PHP


Convert a Unix timestamp to a human-readable format using date().

Source Code

$timestamp = time(); // Current timestamp
echo date("Y-m-d H:i:s", $timestamp);
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments