converts date object into string. Output string will have the format set by the parameter externalDateFormat