How can I create a function to convert only these two fields "todaysDate & shippingDate" from string to Date type in place?
const jsonPayload = {
todaysDate: "03/06/2021",
shippingDate: "01/06/2021",
color: "Blue",
clothes: "T-shirt",
price: 45
}