Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12049

Inconsistent dayOfWeek values

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • 3.6
    • manual, Server
    • None
    • N/A

    Description

      Description

      When following the documentation, 

      The following indicates that `Day of week (Monday 1 - Sunday 7). Can be any expression that evaluates to a number.`
      dateFromParts

      The following indicates that `Returns the day of the week for a date as a number between 1 (Sunday) and 7 (Saturday).`
      dayOfWeek

      Having the functionality be more consistent would greatly improve many user's ease of use.
       

      Scope of changes

      As written, this ticket is more of a server request than a docs request, but we can probably help on the docs end. The confusion stems from the fact that the $dayOfWeek operator is returns the non-ISO Sunday-Saturday day of week, in contrast to $isoDayOfWeek, which uses a Monday-Sunday week. The $dateFromParts operator can break a date into the isoYear, isoWeekYear, and isoDayOfWeek (Mon-Sun).

      Action item: call out the difference between $dayOfWeek vs. $isoDayOfWeek on the $dayOfWeek docs.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jventer@fullfacing.com Johann Venter
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              1 year, 14 weeks, 2 days ago