Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to extract only year and month from date in sql

SELECT FORMAT(<your-date-field>,"YYYY-MM") AS year-date FROM <your-table>
 
PREVIOUS NEXT
Tagged: #extract #year #month #date #sql
ADD COMMENT
Topic
Name
1+1 =