SyntaxFix
Write A Post
Hire A Developer
Questions
to_char(timestamp, 'YYYY-MM')
You say that the order is not "right", but I cannot see why it is wrong (at least until year 10000 comes around).