xdate icon indicating copy to clipboard operation
xdate copied to clipboard

pass arguments Date toLocaleDateString

Open vxf opened this issue 10 years ago • 0 comments

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); }

vxf avatar Jun 28 '14 17:06 vxf