Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Calculations InfoPath JScript

Status
Not open for further replies.

199840

IS-IT--Management
Oct 25, 2005
9
GB
Im actually working in InfoPasth, I have two date pickers and need to record the difference between the two dates selected using Jscript or VB
Please help
 
i don't know what "InfoPath" is, but the difference between two dates is easy - just subtract them - as long as they are valid date objects.

the result you will receive is the difference in milliseconds. You can then divide by 1000 to get the difference in seconds, then by 60 to get the difference in minutes, then by 60 to get the difference in hours, then by 24 to get the difference in days, etc.

*cLFlaVA
----------------------------
[tt]I already made like infinity of those at scout camp...[/tt]
beware of active imagination: [URL unfurl="true"]http://www.coryarthus.com/[/url]

[banghead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top