Skip to content
Related Articles

Related Articles

Improve Article
MonthName() and Now() function in MS Access
  • Last Updated : 03 Sep, 2020

1. MonthName() Function :
MonthName() Function returns the month name based on the number. In this function the first parameter will be the month number and the second parameter will be the abbreviate. It will be optional. If we will pass abbreviate as true then month name should be abbreviated otherwise not. If we did not pass any value in the place of abbreviate then by default it takes false. Jan will 1st number month and dec will be 12th number month.

Syntax :

MonthName(number, abbreviate) 

Example-1 :

SELECT MonthName(7);

Output –

July

Example-2 :



SELECT MonthName(3, FALSE);

Output –

Mar

2. Now() Function :
Now() function returns the current date and time of the computer system. In this function, no parameter will pass it return current date-time.

Syntax :

Now()

Example :

SELECT Now();

Output –

9/3/2020 2:10:29 AM
My Personal Notes arrow_drop_up
Recommended Articles
Page :