Skip to content

Commit

Permalink
Add date method to Date prototype
Browse files Browse the repository at this point in the history
So we do not need to check type
and can always use x.date("YYYY")
  • Loading branch information
lauriro committed Jul 7, 2015
1 parent 8d019d2 commit 95bd761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -33,7 +33,7 @@
//
// 12:00Z = 13:00+01:00 = 0700-0500

Date[proto].format = function(mask, _zone) {
Date[proto].date = Date[proto].format = function(mask, _zone) {
mask = Date.masks[mask] || mask || Date.masks["default"]

var undef, zonediff
Expand Down

0 comments on commit 95bd761

Please sign in to comment.