ModScript does not have this problem and is the preferred scripting language going forward. However, if you cannot switch to ModScript right now, you can follow the suggestion here.
// ignore this part, you'll probably be setting the vars using GetFieldValue or something. var v 1 = CDate("1/29/1978 12:00:00 AM"); var v2 = CDate("1/30/1978 1:00:00 AM");