Spec-Zone.ru › ColdFusion

isNumericDate

Evaluates whether a real number is a valid representation of a date (date/time object).Same as isValid("date", date)

isNumericDate(number) → returns boolean

  • CF
  • Lucee
  • BL 1.0.0+
  • See Also: IsDate ParseDateTime

    Argument Reference

    number numeric
    Required

    Links more information about isNumericDate

    • Learning IsNumericDate by Ben Nadel - Tutorial style article on using the IsNumericDate function in CFML.

    Examples
    Sample code invoking the isNumericDate function

    Simple example

    To determine whether a string can be converted to a date/time value.

    <cfset Date = isNumericDate(now()) >
    <cfoutput>#Date#</cfoutput>

    Expected Result: Yes

    Simple example

    To determine whether a string can be converted to a date/time value.

    <cfset result = isNumericDate("Monday")>
    <cfoutput>#result#</cfoutput>

    Expected Result: No

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/isnumericdate

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API