Open In App

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
Article Tags :
SQL