0

how do I convert

'25/02/2014 10:49:13 -8'(datatype is VARCHAR)

to

'2014-02-25 13:50:13.000000'(datatype is TIMESTAMP)

in postgreSQL

I believe the timestamp is EST timezone.

1
  • Was a solution found for this? I am also unable to parse the offset for my strings. Dec 27, 2020 at 3:14

1 Answer 1

0

Try the method

to_timestamp

Example:

to_timestamp('01 Jan 2007 09:09:09', 'DD Mon YYYY HH:MI:SS')

Hope This helps

1
  • Nope it does not, I have tried to_timestamp but the offset causes an imbalance. I want the offset which accounts for timezone to converted to the EST timezone as my other columns are of that format. Jun 1, 2016 at 20:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.