Whatever message this page gives is out now! Go check it out!

Millisecond

Last update:
Aug 1, 2026

Description

Returns the milliseconds of a specified date object.

Returns

Numeric

Syntax

millisecond(dateObject)

History

  • ColdFusion (2021 release): Added the function.

Category

Parameters

Parameter
Required
Description
date
Yes
Date/time object, in the range 100 AD-9999 AD..
timeZoneNoSpecify the time zone. You may use the function getTimeZomeInfo to retrieve the time zone of a place.

Example

<cfscript>
    writeOutput(millisecond(now()))
</cfscript>

Output

223

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page