Month() and Minute() Function in MS Access

1. Month() Function :
In MS Access, the Month() function returns month part for a given date. In this function, it will take the date as a parameter and it will return the month part. It will the return the integer between 0 to 12.

Syntax :

Month(date)

Example-1 :

SELECT Month(#06/11/2020#);

Output –

6

Example-2 :



SELECT Month(Date());

Output –

9

2. Minute() Function :
In MS Access, the Minute() function returns minute part of the given datetime. In this function the datetime will be passed as parameter and it will return the minute part. It will return the integer between 0 to 59.

Syntax :

Minute(time)

Example-1 :

SELECT Minute(#04/12/2020 10:14:34 PM#);

Output –

14

Example-2 :

 SELECT Minute(#09:03:07#);

Output –

3
My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.