Spec-Zone.ru › ColdFusion

dayOfWeekAsString

Determines the day of the week as a string from 1-7

dayOfWeekAsString(dayOfWeek [, locale]) → returns string

  • CF
  • Lucee
  • BL 1.0.0+
  • See Also: dayOfWeekShortAsString

    Argument Reference

    dayOfWeek numeric
    Required

    Only values from 1 to 7 are valid.Week starting with 1 for Sunday and ends with 7 for Saturday: - 1 = Sunday - 2 = Monday - 3 = Tuesday - 4 = Wednesday - 5 = Thursday - 6 = Friday - 7 = Saturday
    Values:
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7

    locale string
    Default: Default JVM Locale

    Locale to use instead of the default JVM locale.

    Compatibility

    ColdFusion:

    CF2018: Renamed parameter day_of_week to dayofweek. CF8: Added locale parameter. CFMX7: Changed behavior. The returned string is now in the language of the current locale.

    Examples
    Sample code invoking the dayOfWeekAsString function

    Get Sunday

    dayOfWeekAsString(1)

    Expected Result: Sunday

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

    Spec-Zone.ru

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