The second argument of date
is a UNIX timestamp, not a database timestamp string.
You need to convert your database timestamp with strtotime.
<?= date("c", strtotime($post[3])) ?>
More Related Contents:
- Php date() Date and time is stuck [closed]
- PHP mysql insert date format
- Calculate age based on date of birth
- Print time in 15-minute increments between two times in the same day
- Set timezone in PHP and MySQL
- How to convert ISO8601 to Date format in php
- Date in a URL dd/mm/yyyy
- How do I convert datetime to ISO 8601 in PHP
- Change date format (in DB or output) to dd/mm/yyyy – PHP MySQL
- mysql – INSERT date range into date columns IF dates don’t overlap with existing ones
- Formatting an SQL timestamp with PHP
- adding 1 day to a DATETIME format value
- MySQL, how to insert null dates
- How do I convert an ISO8601 date to another format in PHP?
- Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in? [duplicate]
- regarding installation of php in windows
- save user images in MYSQL database by which method? [closed]
- php/mysql with multiple queries
- Notice: Array to string conversion in
- How to search for slash (\) in MySQL? and why escaping (\) not required for where (=) but for Like is required?
- Find total number of results in mySQL query with offset+limit
- How to count days between two dates in PHP?
- How to efficiently find the closest locations nearby a given location
- How to set up entity (doctrine) for database view in Symfony 2
- What is the type this string? a:1:{s:2:”en”;}
- How can I do a migration in laravel 5.5?
- Best way to store IP in database?
- Which is fastest in PHP- MySQL or MySQLi?
- How can I list data in sections by an ID, with a while loop in PHP? [closed]
- find in set in laravel ? example