I have a column called tidpunkt in the database that stores the dates in timestamp formats. How do I extract only the year with SQL? I still want the extracted year to be in timestamp.
I've tried like this:
SELECT EXTRACT(YEAR FROM tidpunkt) as tidpunkt FROM ringupp
But it does not work. Am I doing something wrong?