a few date handling fixes for newer versions of asp