Spec-Zone.ru › ColdFusion

createDate

Creates a date/time object

createDate(year, month, day) → returns date

  • CF
  • Lucee
  • BL 1.0.0+
  • See Also: createDateTime createODBCDate

    Argument Reference

    year numeric
    Required

    Integer in the range 0-9999. When in the range 0-29, year is converted to 2000-2029. When in the range 30-99, year is converted to 1930-1999. You cannot specify dates before AD 100.

    month numeric
    Required

    Numeric month of the year (1-12)

    day numeric
    Required

    Day of the month

    Examples
    Sample code invoking the createDate function

    Output timestamp from date/time object

    <cfscript>
    	yourDate = createDate("2015","12","09");
    	writeOutput(yourDate);
    </cfscript>

    Expected Result: {ts '2015-12-09 00:00:00'}

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

    Spec-Zone.ru

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