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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -