Convert timestamp to readable date/time PHP

Correctly determine if the date string is a valid date in that format
Converting string to Date and DateTime

This post will answer the problem statement: How can I convert that to a readable date/time in PHP?

Solution 1

Use PHP’s date() function.

echo date('m/d/Y', 1299446702);

solution 2

echo date('m/d/Y H:i:s', 1299446702);

https://stackoverflow.com/questions/5213528/convert-timestamp-to-readable-date-time-php

Correctly determine if the date string is a valid date in that format
Converting string to Date and DateTime
en English
X
Scroll to Top