Ensure that passing in date objects works with IE6