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 );



 
PREVIOUS NEXT
Tagged: #php #datetime #mysql
ADD COMMENT
Topic
Name
4+1 =