4 ms·
> Date().toLocaleDateString() > Uncaught TypeError: Date().toLocaleDateString is not a function That doesn't seem like a standard API call.
by rhn_mk1 6y ago
> Date().toLocaleDateString()
> Uncaught TypeError: Date().toLocaleDateString is not a function
That doesn't seem like a standard API call.
- bmn__ 6y agoIt is standardised and widely implemented. https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString#specifications https://developer.mozilla.org/docs/Web/JavaScript/Reference/... Your code has a bug, missing constructor.
- teh_klev 6y agoLooks like an instance method, rather than a static.