Is there a site which has a "program" that allows me to enter two dates and then the program will compute the length of time between these two dates?
Answers and Replies
#2
ComputerGeek
383
0
why not sit down and figure that out yourself? heck, you could write a perl script to do that/
#3
eNathan
352
1
I wrote a function in Delphi that does that. I am not sure if you have Delphi or not. If you really want I can write a VB code and it should be easily transated to VB Script to be used in Web Browsers. By the way, it returns the result in seconds. Here you go. (may get range check error if Date1 > Date2 ^^)
Result := Result + RHour * Hour;
Result := Result + RMin * Minute;
Result := Result + RSec * Seconds;
Result := Result + RMSec * MilliSecond;
Result := Result + RY * Year;
Result := Result + RM * Month;
Result := Result + RD * Day;
Except Result := 0;//wtf ^^
End;
End;