Convert date to integer (timestamp)

In mysql , die data type ist integer... Und ich will sparen, das Datum als 1422104820 format (timestamp).

$Date = $_POST['Date'];
$Time = $_POST['myTime'];
$Date1 = $Date.$myTime;

insert into table ('date') values ($Date1);
mögliche Duplikate von convert date string, mysql-datetime-Feld
in mysql , the data type is integer während es richtig sein sollte timestamp

InformationsquelleAutor Ghost | 2015-02-09

Schreibe einen Kommentar