From: Tim Wood Date: Thu, 1 Dec 2011 01:24:17 +0000 (-0800) Subject: Adding moment.fn.toDate duplicate method of moment.fn.native #34 X-Git-Tag: 1.2.0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a69265fbd8b8e61a7bb3bfb52c8a4bd3e746a266;p=thirdparty%2Fmoment.git Adding moment.fn.toDate duplicate method of moment.fn.native #34 --- diff --git a/moment.js b/moment.js index 9ff4059ce..f5954b742 100644 --- a/moment.js +++ b/moment.js @@ -476,6 +476,10 @@ return this._d.toString(); }, + toDate : function () { + return this._d; + }, + format : function (inputString) { return formatDate(this._d, inputString); },