Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (55.6k points)

Can anyone tell me how to get month from date in SQL?

1 Answer

0 votes
by (119k points)
edited by

We can use MONTH() function to get the month from date in SQL. Here is the syntax to get the month from date in SQL:

SELECT MONTH(Date) AS Month;

Here is the syntax to get the month from the current system date:

SELECT MONTH(CURDATE());

If you are interested in SQL, then enroll in this SQL training course by Intellipaat that provides instructor-led training, self-paced videos, and certification also.

Related questions

0 votes
1 answer
asked Jul 22, 2019 in SQL by Tech4ever (20.3k points)
0 votes
1 answer
0 votes
1 answer
asked May 6, 2020 in SQL by Sudhir_1997 (55.6k points)
0 votes
1 answer
asked Apr 21, 2020 in SQL by Sudhir_1997 (55.6k points)
0 votes
1 answer
asked Apr 21, 2020 in SQL by Sudhir_1997 (55.6k points)

Browse Categories

...