View Single Post
Old 10-12-2012, 01:46 PM   PM User | #2
mrhoo
Regular Coder

 
Join Date: Mar 2006
Posts: 708
Thanks: 30
Thanked 127 Times in 118 Posts
mrhoo will become famous soon enoughmrhoo will become famous soon enough
new Date(1350054950348)= Fri Oct 12 11:15:50 EDT 2012


You are using the timestamp that returns from the setHours() method.

set the hours, then read the date string-

Code:
	myDate.setHours(myDate.getHours()+priority);

	document.getElementById('deadline').value=myDate;
mrhoo is offline   Reply With Quote