Posted By

koko on 07/22/10


Tagged

mysql php time unix DateTime timestamp


Versions (?)

Convert UNIX timestamp to MySQL DATETIME


 / Published in: PHP
 

The current time, converted from UNIX timestamp to use in MySQL DATETIME

  1. $var = date( 'Y-m-d H:i:s', time());

Report this snippet  

You need to login to post a comment.