I am trying to convert a date in words Mar 02 2018
to a timestamp and convert it back to the original format(Mar 02 2018
)
This is because I want the users to input date in this format then it is save to the database as a timestamp so that the sql statement ORDER BY timestamp DESC
can work. And then on display shows the original format which it was inputted.
I have seen some similar post but not the exact format of date I want and not vice versa.
Thanks for your input. Also if it isn't converted to timestamp would the sql statement still order it properly or I need to convert it to timestamp??