In PHP è semplice convertire un valore DATETIME MySQL in un timestamp Unix.
La soluzione è la seguente:
$dt = '2018-08-14 11:38:00';
$timestamp = strtotime($dt);
In PHP è semplice convertire un valore DATETIME MySQL in un timestamp Unix.
La soluzione è la seguente:
$dt = '2018-08-14 11:38:00';
$timestamp = strtotime($dt);