I am looking to manipulate dates by either adding or subtracting them, but I am unsure of how to extract the dates from the other data present.
var fetch = require('node-fetch');
fetch('https://api.nasa.gov/planetary/earth/assets?lon=100.75&lat=1.5&begin=2014-02-01&api_key=DEMO_KEY')
.then(response => response.json())
.then(data => console.log(data));
This is the current output I am receiving:
{
count:56,
results:[
{
date:'2014-02-04T03:30:01',
id:'LC8_L1T_TOA/LC81270592014035LGN00'
},
{
date:'2014-02-20T03:29:47',
id:'LC8_L1T_TOA/LC81270592014051LGN00'
},
{
date:'2014-03-08T03:29:33',
id:'LC8_L1T_TOA/LC81270592014067LGN00'
},
{
date:'2014-03-24T03:29:20',
id:'LC8_L1T_TOA/LC81270592014083LGN00'
}
]
}