How To Decease Fourth Dimension Together With Engagement From Datetime Postage Inwards Php Together With Mysql?

You tin dismiss operate the strtotime php component to variety appointment together with fourth dimension from datetime string. It tin dismiss come upwards inwards handy when you lot take away to variety appointment together with fourth dimension from datetime format inwards the mysql database.
    $datetime = '2013-08-14 11:45:45';    echo date("Y-m-d",strtotime($datetime)); // output 2013-08-14    echo  date("H:i:s",strtotime($datetime)); // output 11:45:45 
Small together with uncomplicated solution. :)

Sumber http://developer-paradize.blogspot.com

Comments

Popular posts from this blog

What Are The Main Components of a Computer System

Top Qualities To Look For In An IT Support Team

How To Integrate Google Adwords Api Into Codeigniter?