I have a timestamp like 2014-08-17T06:16:55.967Z that I want to insert in a Postgres db, but I want to remove just the milliseconds and keep the 'T' and the 'Z'. Anyone know how that is possible? I've tried 2014-08-17T06:16:55.967Z::timestamp(0) or timestamptz(0), but they both take away what I want to keep.
I would like 2014-08-17T06:16:55Z.