// Add date subtitle

This commit is contained in:
Jerome Nadaud committed 2013-10-22 12:12:41 +02:00
1 parent d8d9436f51
commit b6d6336e26
5 files changed
+134 -4

No files matched your search

+2
View File
@@ -51,6 +51,7 @@ Date.parseDate = function(date, format) {
switch(formatParts[i]) {
case 'dd':
case 'd':
case 'j':
date.setDate(parseInt(parts[i], 10)||1);
break;
@@ -121,6 +122,7 @@ Date.prototype.format = function(format) {
switch(formatParts[i]) {
case 'dd':
case 'd':
case 'j':
result += this.getDate() + formatSeparator;
break;