Stack Overflow for Teams is moving to its own domain! When the migration is complete, you will access your Teams at stackoverflowteams.com, and they will no longer appear in the left sidebar on stackoverflow.com.
Check your email for updates.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
You could use Formatted Date Time component to display the date in the desired format, which is the same component used internally by datatable.
Indeed the attributes to format the date as MM/DD/YY ...
Ok I am updating my answer (overwriting it) as I ran your script and see the issues.
When you build the first day date, you are parsing it in dd-mm-yyyy format which means it is going to take the day ...