Postgres + Unixtime

Here's how you get unixtime from a Postgres date field.

SELECT extract('epoch' from DateField) AS UnixTime FROM Table;
Leave A Reply
All content licensed under the Creative Commons License