Ok guys I don’t know if I’m doing this right, so I’m trying to convert the next string to a timestamp: 23/02/2012
list($d,$m,$y)=explode("/",$_POST[$form_name]);
$date=time(date($d,$m,$y));
And it doesn’t work, now when I want to display it, what I dodate("d/m/Y",$timestampDB); ?
use
mktime( 0, 0, 0, $m, $d, $y )to get the timestamp anddate('d/m/y', $timestamp)to print the date. If you completely control the format of the date string, usestrtotime