How to change date format in angularjs

2018-06-30t0815 to 2018-06-30