So extrahieren Sie nur Jahr und Monat ab Datum in SQL
SELECT FORMAT(<your-date-field>,"YYYY-MM") AS year-date FROM <your-table>
Badthumbs
SELECT FORMAT(<your-date-field>,"YYYY-MM") AS year-date FROM <your-table>