[DOCS-12049] Inconsistent dayOfWeek values Created: 12/Sep/18  Updated: 30/Oct/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: 3.6
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Minor - P4
Reporter: Johann Venter Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

N/A


Participants:
Days since reply: 1 year, 14 weeks, 2 days ago
Epic Link: DOCSP-1769

 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.



 Comments   
Comment by Education Bot [ 31/Oct/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Generated at Thu Feb 08 08:04:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.