get all fields in object that have given word and transform all values of these fields

Viewed 387

I have an object. like this, for example

{
    startDate: 2141242141,
    adress: '',
    endDate: 2141242141,
    billings: {
        startBillingDate: 2142421421421,
        endBillingDate: 2142421421421
    }
    amount: 100
}

I need to get all fields those contain word "Date" (or "date") and convert them all into string date format.

Who can help please.

3 Answers
Related