I'm working on timestamp/datetime in my application. I'm using postgres db. What is the way to get current milliseconds (something like 1412706599000) in postgres?

select extract(epoch from current_timestamp) * 1000;

More details in the manual:

  • Exactly what i looked for. – Rajesh Kumar Apr 9 '15 at 7:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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