in reply to
'use strict' is not Perl
A little offtopic, but how does VBScript mangle dates silently? I use VBScript regularly (I'm afraid perl is verboten for our production web site, I just use it for behind-the-scenes scripting) and I don't recall many surprises. The odd problem I've had has come when specifying a 6-digit date, if that's what you mean. Sometimes, depending on the locale setting on the server it may do something unanticipated to a yy-mm-dd or mm-dd-yy or dd-mm-yy date. Of course now we're in 2001 the two-digit year could be mistaken for a month or day. What I do is to always use yyyy-mm-dd format when specifying a date and let VB's internal format take care of everything. This way you don't run into any problems. Then use DateDiff, DateAdd, Year, Month, Day etc. to get all of what you need. Maybe I'm missing something, but I've found VBScript's date handling very convenient.