Spec-Zone.ru › ColdFusion

lsDateTimeFormat

Formats date and time values using locale-specific date and time formatting conventions.

lsDateTimeFormat(date [, mask, locale, [timeZone]]); → returns string

  • CF10+
  • Lucee
  • BL 1.0.0+
  • See Also: dateTimeFormat

    Argument Reference

    date date
    Required

    A date/time object, in the range 100 AD-9999 AD.

    mask string

    Mask that has to be used for formatting.

    locale string

    Locale to use instead of the locale of the page when processing the function.

    timeZone string

    The time-zone information. You can specify in either of the following formats. Abbreviation and Full Name.

    Links more information about lsDateTimeFormat

    • SimpleDateFormat - This function accepts the mask values documented here.

    Examples
    Sample code invoking the lsDateTimeFormat function

    Mask = Short Example

    lsDateTimeFormat("2015-04-11 19:02", "short")

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

    Spec-Zone.ru

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