new date tostring format angular code example
Example: angular date to string format
//https://momentjs.com/docs/#/displaying/format/
moment(date).format("yyyy-MM-DD");
//https://momentjs.com/docs/#/displaying/format/
moment(date).format("yyyy-MM-DD");