summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/extended/date.js
diff options
context:
space:
mode:
authorwei <>2006-01-19 07:42:52 +0000
committerwei <>2006-01-19 07:42:52 +0000
commit9275bf0de0e9ccbc5ee9311c9b59efcbfbc01a6a (patch)
tree14c0120ecbcc3dc4c06d9603cce0eb1294d495b9 /framework/Web/Javascripts/extended/date.js
parent5c333928f7f328319f1de4486d5e7ce3a54fc2ce (diff)
Diffstat (limited to 'framework/Web/Javascripts/extended/date.js')
-rw-r--r--framework/Web/Javascripts/extended/date.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/Web/Javascripts/extended/date.js b/framework/Web/Javascripts/extended/date.js
index 375c59df..9e56ff64 100644
--- a/framework/Web/Javascripts/extended/date.js
+++ b/framework/Web/Javascripts/extended/date.js
@@ -5,10 +5,10 @@ Object.extend(Date.prototype,
{
var bits = new Array();
bits['d'] = this.getDate();
- bits['dd'] = Prado.Util.pad(this.getDate(),2);
+ bits['dd'] = String(this.getDate()).zerofill(2);
bits['M'] = this.getMonth()+1;
- bits['MM'] = Prado.Util.pad(this.getMonth()+1,2);
+ bits['MM'] = String(this.getMonth()+1).zerofill(2);
var yearStr = "" + this.getFullYear();
yearStr = (yearStr.length == 2) ? '19' + yearStr: yearStr;
@@ -29,8 +29,8 @@ Object.extend(Date.prototype,
toISODate : function()
{
var y = this.getFullYear();
- var m = Prado.Util.pad(this.getMonth() + 1);
- var d = Prado.Util.pad(this.getDate());
+ var m = String(this.getMonth() + 1).zerofill(2);
+ var d = String(this.getDate()).zerofill(2);
return String(y) + String(m) + String(d);
}
});