In certain scenarios the getFieldValue Javascript function returns dates in the default format instead of the date format selected by the user. For example the regional settings are set to use a date formatting of dd/mm/yyyy so a date of 07/10/2015 should be returned as 07 October 2015, however for this particular field only the returned date is Fri Jul 10 2015 00:00:00.
var fld = GetFieldByName(" subrelational "); SetFieldValue("DESCRIPTION", fld.innerText); // IE (does not exist for Firefox) works SetFieldValue("DESCRIPTION", fld.textContent); // Firefox returns the string without CRLF characters