Skip to content
Related Articles

Related Articles

Improve Article

Second() and Time() Function in MS Access

  • Last Updated : 03 Sep, 2020

1. Second() Function :
In MS Access, the second() function returns the second part of the datetime. In this function the datetime will be passed as parameter and it will return the second part of the datetime. The returnred integer will be in the range of 0 to 59.

Syntax :

Second(time)

Example-1 :

SELECT Second(#12:28:45#);

Output –

45 

Example-2 :



SELECT Second(#14/09/2020 11:19:54 PM#);

Output –

54

2. Time() Function :
In the MS Access, The Time() function returns the current computer system time. In this function nothing will be passed and it will return the current time.

Syntax :

Time()

Example-1 :

SELECT Time() ;

Output –

10:56:47 AM

Example-2 :

SELECT Time() ;

Output –

10:57:36 AM
My Personal Notes arrow_drop_up
Recommended Articles
Page :