简体   繁体   中英

Internet Explorer date errors with salesforce but chrome works fine

I am trying to set up a dynamic field. Which will be generated based on entries of other fields. However whenever i try to submit my form, on Chrome it works perfectly fine, however on internet explorer it doesn't like it and says its an invalid date. Or cannot be converted from text to date.

I am using some Javascript Onblur events to assign the readonly text box dynamically.

$j('[id$=MaturityDate]').val(MaturityDate.toLocaleDateString());

although the outputted text goes into an approriate m/d/yyyy format, it gives a error on validation.

The output on the textbox is formatted perfectly. It just doesn't work in IE

Your explanation is vague but from experience I guess you are using an old jquery, there is a datetime functionality shift around version 1.6. FWIW

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM