Parse date for Firefox and IE bugs