|
Grae Beginner
Joined: 21 May 2006 Posts: 11
|
Posted: Thu Feb 01, 2007 10:38 pm
Evaluating Dates in Zmud |
Basically I want to take 2 dates & times and calculated the # of months/days/minutes/seconds between the two. So far the only scripts I've seen use a long series of calculations to do them. I'd prefer something simpler. I also know there's a VBscript command datediff() but I am unsure how to use it to get it working. Any suggestions?
|
|
|
|
gamma_ray Magician
Joined: 17 Apr 2005 Posts: 496
|
Posted: Fri Feb 02, 2007 1:35 am |
I can almost guarantee that VB internally does a long series of calculations anyway, so what it seems like you want is a simple way to -call- the long series of calculations, yes? If so, you can easily set up a function in ZMud that does it for you with just a single call. You'll need to explain what format your dates are coming in, though, and what format you want the answers in.
|
|
|
|
Grae Beginner
Joined: 21 May 2006 Posts: 11
|
Posted: Fri Feb 02, 2007 1:37 am |
I can put the date format in any of the %time formats that zmud has, output eventually will be split into days/weeks/hrz/mins etc but if i got it as a cumulative hrs/mins that would be sufficent that i could work from there
|
|
|
|
|
|