Skip to main content



Second Function

The Second function returns the seconds for a given DateTime (0 to 59).

Syntax 1

Second()

The Second function returns the seconds for a given DateTime (0 to 59).

Syntax 2

Second(dateTime)

The Second function returns the seconds for a given DateTime (0 to 59).

Arguments

dateTime DateTime - A date-time.

Remarks

  • If a Date (not a DateTime) is passed, the function returns 0.

Example:

Second("2005-1-28T22:10:45"); // returns 45