|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
Dates
Hi,
A newbie but making some headway into the basics, I have a problem I'm trying to find the difference between 2 dates in a form: <script language="JavaScript" type="text/JavaScript"> <!-- <!-- Begin function calc3() { numtextfield3 = (document.Form1.textfield1.value - document.Form1.textfield2.value); document.Form1.textfield3.value = numtextfield3; } // End --> //--> </script> I keep getting an error what I want is if: textfield1 = 12/03/03 12:05 and textfield2 = 12/03/03 11:10 I would like textfield3 the differnce between the dates. Any ideas? Thanks Sanj |
|
#2
|
|||
|
|||
|
wrong forum, you wanna try the javascript one instead of the asp one.
__________________
"They have the internet on computers now" - Homer |
|
#3
|
|||
|
|||
|
Thanks homerdooh, I posted it to the Java Forum
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Dates |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|