Created
May 9, 2012 20:11
-
-
Save hatched/2648479 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
normalizeIsoDate: function(date) { | |
Y.log('normalizeIsoDate', 'info', this.name); | |
var dateString = date.replace(/-/g, '/'), | |
normalizedDate; | |
normalizedDate = new Date(dateString); | |
if (normalizedDate == "Invalid Date") { | |
return new Date(); | |
} | |
return normalizedDate | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment