Mysql timestamp to date

132 0 0 0

Last Updated : 2021-04-12 21:22:41

To convert a mysql date to an ordinary date you can use the following snippet

//MYSQL  timestamp to date 
date("Y-m-d", strtotime($item->date)

{{ strftime("%d %b %Y",strtotime($user->created_at)) }}


 

Mohammed Anwar

Mohammed Anwar

Experienced technical lead PHP, MySQL and Laravel Developer for 15+ years, with proven ability to develop and create high-quality and optimized web applications. Great ability to build and optimize database design, schema and queries. Versed programing trainer and instructor delivering web courses and helping others to get into the field in a timely manner. Fast and eager learner for new technologies .