i have a variable called $eventTimeDate which assemble the date Y-M-D and the time, the current output of this var is 2012-05-31 21:00:00 , i store this var in my mysql database already, then i select this value by using SELECT UNIX_TIME() AS time
what i need is to convert this output to this format 2332422323 like unix before i inserted to my database.
Use strtotime($eventTimeDate)
See: strtotime()