Selecting timestamp from Database - Mailing list pgsql-general

From Richard Harley
Subject Selecting timestamp from Database
Date
Msg-id 5134386C-0F49-4E46-98D9-E2FBA34E9B2B@scholarpack.com
Whole thread Raw
Responses Re: Selecting timestamp from Database
List pgsql-general
Hello all

Pretty sure this should be simple - how can I select a timestamp from a database?

The timestamp is stored in the db like this:

2013/04/08 13:54:41 GMT+1

How can I select based on that timestamp?

At the simplest level "select timestamp from attendance where timestamp = '2013/04/08 13:54:41 GMT+1'"

..doesn't obviously work but I've tried all sorts of to_char and to_timestamp combos to no avail..

Any ideas?

Cheers
Rich

pgsql-general by date:

Previous
From: Vincent Veyron
Date:
Subject: Re: Building 3rd-party contrib/extension on Windows?
Next
From: Johann Spies
Date:
Subject: Backup advice