Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php datetime to mysql

//mysql date now
date("Y-m-d H:i:s");

//convert mysql to int
$phpdate = strtotime( $mysqldate );

//and back
$mysqldate = date( 'Y-m-d H:i:s', $phpdate );



Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #datetime #mysql
ADD COMMENT
Topic
Name
2+1 =