The method is for formatting the date-strings from my angular form back into date-type before submitting. When updating the object, the values of the array of objects inside