View Single Post
Old 11-16-2012, 09:23 PM   PM User | #1
kiwis
New Coder

 
Join Date: Mar 2007
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
kiwis is an unknown quantity at this point
How can i publish the date being in custom format

This is my code

Code:
myDate.setMonth(myDate.getMonth()+1); 
	document.getElementById("demo").innerHTML = myDate.toDateString("m/dd/yy");
but the output is

Sat Jul 21 1990

I don't want the day of week (Sat) or the day number (21)
kiwis is offline   Reply With Quote