MonthName() and Now() function in MS Access

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

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.