Link to home
Create AccountLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

user enters datetime in M j, g:i A format, saved in mysql format and then displayed on the form again in M j, g:i A format

a user is entering time in an input textbox which gets saved into mysql and then displayed in the input textbox again

datetime in this format:
M j, g:i A

Mar 10, 6:05 PM


want to convert
to mysql format
Y-m-d H:i:s

and then back into
M j, g:i A

how to do the two conversions
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of rgb192

ASKER

thank you for organizing dates
You're welcome.