javascript add up date and time object in an array

  arrays, javascript, loops

so I have a list of array of time and date I want to join both appointmateDate and appointmentTime to iso format and get a new array of timeRange is that possible🙏🏻

      const time = [
        {
            "appointmentDate": "2021-12-24T23:00:00.000Z",
            "appointmentTime": "17:51 am"
        },
        {
            "appointmentDate": "2021-12-24T23:00:00.000Z",
            "appointmentTime": "18:51 am"
        },
        {
            "appointmentDate": "2021-12-24T23:00:00.000Z",
            "appointmentTime": "19:51 am"
        },
        {
            "appointmentDate": "2021-12-24T23:00:00.000Z",
            "appointmentTime": "20:51 am"
        }
    ]

Source: Ask Javascript Questions

LEAVE A COMMENT