// Add date subtitle

This commit is contained in:
Jerome Nadaud
2013-10-22 12:12:41 +02:00
parent d8d9436f51
commit b6d6336e26
5 changed files with 134 additions and 4 deletions
+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;