Convert UNIX timestamp to MySQL DATETIME


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. $var = date( 'Y-m-d H:i:s', time());

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.