[FIX] web: format.js, toString while parsing date

When attempting to parse client date, value is not always a string.
We force the toString when adding the leading 0, as the replace method is for string