mysql - Convert this date string to DATETIME or TIMESTAMP with PHP -


i'm using beanstream payment api, , response comes following date format:

5/21/2013 3:51:28 pm 

what best way convert in order store timestamp or datetime in mysql using php?

take @ this, this, , this how parse, create, , format dates/times in php.

if in hurry, work:

strftime('%y-%m-%d %h:%m:%s', strtotime('5/21/2013 3:51:28 pm')) 

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -