[mysql/php] parsing a mysql timestamp SOLVED This is starting to mess with me now, maybe one of you guys can enlighten me . I am pulling timestamp from a MYSQL database. When I output it using an echo $human['udate']; I get "20050110" but if I try to say echo substr($human['udate'],4,5); I get 0110. I pretty sure that the timestamp isn't actully a string but another format. That being the case I don't know what PHP function I can use to parse it.