]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Adding moment.fn.toDate duplicate method of moment.fn.native #34
authorTim Wood <washwithcare@gmail.com>
Thu, 1 Dec 2011 01:24:17 +0000 (17:24 -0800)
committerTim Wood <washwithcare@gmail.com>
Thu, 1 Dec 2011 01:24:17 +0000 (17:24 -0800)
moment.js

index 9ff4059ce25873642196e133b92a9934fa2cc165..f5954b742e613fccdf601e04aec15f6739712a77 100644 (file)
--- a/moment.js
+++ b/moment.js
             return this._d.toString();
         },
 
+        toDate : function () {
+            return this._d;
+        },
+
         format : function (inputString) {
             return formatDate(this._d, inputString);
         },