Presented here is an array with the data labeled dateInterview:Date:
public notes: Array<{ idAgreement: string, note: string, dateInterview: Date }> = [];
My goal is to send this array to the server where all values of dateInterview need to be converted to strings. How can I achieve this?
While I was able to convert the value using onChange in my input, it's not a feasible solution for various reasons.
This snippet demonstrates how I handle the conversion in my code:
this.defaultAgreement.interviews = this.notes;
I am assigning notes to defaultAgreement.interviews
which is nested within an Object:
...,
public interviews: Array<any>,
....,
Subsequently, I send this comprehensive object that includes interviews.
Your assistance with this matter is greatly appreciated!