rcod
12-09-2009, 06:53 AM
Hello,
I've obtained the following code.
function makeDate(){
var d = new Date();
var strDate=d.getFullYear() + "/" + (d.getMonth()+1) + "/" + d.getDate() + " ";
strDate += d.getHours() + ":" + d.getMinutes() +":"+ d.getSeconds() ;
return strDate;
and I think I'm going to get the time and date indications in 2 digits.
I want to get it like this:
2009/12/07 18:07:33
NOT like:
2009/12/7 18:7:33
How should I alter the code?
Can anyone help?
Thanks in advance.
I've obtained the following code.
function makeDate(){
var d = new Date();
var strDate=d.getFullYear() + "/" + (d.getMonth()+1) + "/" + d.getDate() + " ";
strDate += d.getHours() + ":" + d.getMinutes() +":"+ d.getSeconds() ;
return strDate;
and I think I'm going to get the time and date indications in 2 digits.
I want to get it like this:
2009/12/07 18:07:33
NOT like:
2009/12/7 18:7:33
How should I alter the code?
Can anyone help?
Thanks in advance.