Currently working with PostgreSQL 9.3 and exploring options for utilizing TIMESTAMPTZ
as authentic JavaScript date objects.
Aware of JavaScript lacking a Date
literal notation, I considered
'{ "key" : new Date(datevalue) }'::JSON
as a possible solution.
Encountering the error: Token "new" is invalid,
Is there a way to modify the Postgres JSON parser?
Open to suggestions on achieving more consistency in datatype while transferring data between the front and back end... any advice?