fixed date bug in IE and FF