I have JavaScript on a number of forms now that I use to "copy all notes" from a table into a Recorded Activities (hidden) field that is used in the LF Form Reports. This works great most of the time, however, occasionally, the date fields from the table are copied over as a five digit number that means nothing to us. The dates in the table are still showing correctly, it's just what gets copied over to the hidden multiline field that ends up wrong.
The part of the JavaScript that controls what is copied for the date field is this: ... allNotes = allNotes + new Date($(this).find('.notesDate input').val()).toISOString().split('T')[0] + ...
Is there any way we can get it to always copy the date correctly?