I'm using the DateTime component, and I have it importing data from a selected table row.
The table row already formats the date:
(We check that it's a valid item, then convert it to the following format with a UTC offset using moment.js
):
{{
${item ? moment(item).utcOffset(-6).format("MMM D, YYYY hh:mm A Z") : ''} }}
Example item: "2019-01-01T00:00:00.000000-0600"
User clicks the "action icon" on the table row, and it pulls up a modal populated with selectedRow:
{{ moment(fixupsResultsTable.selectedRow.effective_date).format('dddd, MMMM d, YYYY') }}
I was trying to manipulate this string to show the "day" in the edit view.
In the format
of the date
component, it pops up a little window with a link "see unicode symbols" - which, when clicked, hides the pop-up. That's it. Can't even right-click it to open in new window, as any interaction hides it (it links here for those following)
Now, the other issue - Format dddd
SHOULD display the day (i.e. Monday, etc.). Instead - it displays 0001
from the above date.
After some adjustments, I've gotten it to (in preview) show correctly:
{{ moment(fixupsResultsTable.selectedRow.effective_date).utcOffset(-6).format('dddd, MMMM d, YYYY') }}
HOWEVER the output in the component in the window still outputs Jan 2, 2019 12:00 AM
The following is what I'm "working with":
![Screenshot 2024-01-11 at 7.19.50 PM](https://community.retool.com/uploads/default/original/3X/2/3/235008b1b784905a7192374896d0fd8c035d4e53.png)
The following shows dddd
does not output the day: