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
Post a Comment