PDA

View Full Version : Date and Time Beginners Task


knightm22
01-11-2005, 09:34 AM
Hello

I need to automatically put the date into my form field in the format of DDMMCCYY. I am having problems displaying 9th January 2005 is it knocks off the '0' and shows 912005

Any help would be great

thanks

Zee
01-12-2005, 03:25 PM
strNumber = (number < 10) ? "0" + number : String(number);

Regards