I have a date and time in the following format:
Mon Feb 10 2020 00:00:00 GMT+0330 (Iran Standard Time)
I want to change it to this format: 2020/02/03T12:35:10
I have tried using the DatePipe
, but it does not work and the format remains the same:
this.datePipe.transform($event.value._d,'YYYY/MM/DD')
Instead of changing the format, it gives me: YYYY/02/DD
Can anyone help me solve this issue?