Skip to main content



Millisecond Function

The Millisecond function returns the milliseconds for a given DateTime (0 to 999).

Syntax 1​

Millisecond()

The Millisecond function returns the milliseconds for a given DateTime (0 to 999).

Syntax 2​

Millisecond(dateTime)

The Millisecond function returns the milliseconds for a given DateTime (0 to 999).

Arguments​

dateTime DateTime - A date-time.

Remarks​

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

Example:

Millisecond("2005-1-28T22:10:45.227"); // returns 227