I\'m working with ngbDatepicker this is giving me JSON date format like:
{ year: 2019, month: 6, day: 9 }
How can I convert this into YYYY/
What you need is
var date = object.year + '/' + object.month + '/'+ object.day