Hi I am looking for a way to transform my data to change the unix time stamp to DD/MM/YYY in given response format and return the same format back, I tried many ways to but I couldn't achieve what I wanted.
Here is the response format.
const mockResponse =
{ identifier : 'something'
, palette : 'sev'
, fus_config :
{ dataSource:
{ chart: { }
, dataset:
{ data:
[ [ '1631212200000', 4.85, 27.49, 25]
, [ '1631212200000', 4.07, 25.39, 37]
, [ '1631212200000', 4.66, 24.48, 56]
, [ '1631212200000', 4.77, 24.05, 45]
]
} } } }
I am expecting this to be transformed into this.
const mockResponse =
{ identifier : 'something'
, palette : 'sev'
, fus_config :
{ dataSource:
{ chart: { }
, dataset:
{ data:
[ [ '12/13/1995', 4.85, 27.49, 25]
, [ '12/13/1995', 4.07, 25.39, 37]
, [ '12/13/1995', 4.66, 24.48, 56]
, [ '12/13/1995', 4.77, 24.05, 45]
]
} } } }
Thank you for your help.