Skip to content

Conversation

AnalogMemory
Copy link
Owner

Description

Date values are displayed in ISO 8601 format (YYYY-MM-DD) but value returned can be formatted differently for single digit days or months.

For example, if you have a date field with a value of 2023-01-09, the value returned will be 2023-1-9.

Because whole numbers are passed into arguments of the function clickDay and then concatenated into a string, the leading zeros are dropped.

This PR adds passes the final values into the dayjs formatter to ensure that the date is formatted correctly.

Date values are expected to be in ISO 8601 format (YYYY-MM-DD) but value returned can be off on single digit days and months
@AnalogMemory AnalogMemory deleted the fix/format-returned-value branch February 27, 2023 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant