ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 10th, 2003, 08:25 PM
sanj sanj is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 133 sanj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 h 18 m 21 sec
Reputation Power: 11
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

Reply With Quote
  #2  
Old March 11th, 2003, 06:19 AM
homerdooh homerdooh is offline
php newbie
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2001
Posts: 544 homerdooh User rank is Sergeant Major (2000 - 5000 Reputation Level)homerdooh User rank is Sergeant Major (2000 - 5000 Reputation Level)homerdooh User rank is Sergeant Major (2000 - 5000 Reputation Level)homerdooh User rank is Sergeant Major (2000 - 5000 Reputation Level)homerdooh User rank is Sergeant Major (2000 - 5000 Reputation Level)homerdooh User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 19 h 38 m 56 sec
Reputation Power: 36
wrong forum, you wanna try the javascript one instead of the asp one.
__________________
"They have the internet on computers now" - Homer

Reply With Quote
  #3  
Old March 11th, 2003, 06:29 AM
sanj sanj is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 133 sanj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 h 18 m 21 sec
Reputation Power: 11
Thanks homerdooh, I posted it to the Java Forum

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Dates

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap