$t = strptime('2004-02-12T15:19:21', '%Y-%m-%dT%H:%M:%S'); echo mktime(0, 0, 0, $t['tm_mon']+1, $t['tm_mday'], $t['tm_year']+1900);