|
skrummen -> RE: Wise Script Editor - comparing dates (4/16/2008 4:02:39 PM)
|
I think I figured this out. I ended up creating a .vbs file that is called from the script that takes variables from the wise script, executes the vbs script and then brings the result back to wise again. vbs code: '(Declarations) FILEMOD = GetVariable("FILEMOD") DEATHDATE = GetVariable("DEATHDATE") FILEMOD = CDate(FILEMOD) DEATHDATE = CDate(DEATHDATE) If DateDiff("d", FILEMOD, DEATHDATE) >= 1 Then SetVariable "DATECOMPARE", 1 Else SetVariable "DATECOMPARE", 0 End If 'End of (Declarations)
|
|
|
|