You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a quick hack this will get the said functionality for now:
XDate.prototype.toLocaleDateString = function(locale, options) {
return this[0].toLocaleDateString(locale, options);
}
The text was updated successfully, but these errors were encountered:
XDate in fact uses the underlying toLocaleDateString method of Date, unfortunately it's currently incapable of passing the arguments to the underlying toLocaleDateString which would be very useful:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString
Would be good to see this improvement.
As a quick hack this will get the said functionality for now:
XDate.prototype.toLocaleDateString = function(locale, options) {
return this[0].toLocaleDateString(locale, options);
}
The text was updated successfully, but these errors were encountered: