DaveBruwer / super-barnacle

0 stars 0 forks source link

Date to locale string #14

Closed DaveBruwer closed 11 months ago

DaveBruwer commented 11 months ago

The date.toLocaleString() returns dd/mm/yyyy on some systems and mm/dd/yyyy on others, causing a bug.

Solution could be to add a format specifier to force dd/mm/yyyy.

DaveBruwer commented 11 months ago

fixed using date.getMonth() and date.getFullYear() to eliminate any future such issues.