'MMM d, hh:mm:ss a' date format broke on Perspective table?

switched to ‘MM/DD/YYYY HH:mm:ss’ and see good behavior. What is weird is I have methods built off the props.data[0] of that row. And it uses the rendered value? instead of the good backend value.

Same results in the browser as well. This date format has worked for me for a long time.

Change the lower-case “d” in your format to “D”, or “DD”.

moment.js defines “d” as the 0-indexed day of the week, where Sunday is “0”, and Saturday is “7”. “D” is the day of the month, so the the “8th” day of a month would be “8” with “D”, and “08” with “DD”.

1 Like