Why is that when I display the date using the pipe date:'MM/dd/YYYY' when the value is 2022-01-01T00:00:00 it is showing 1/01/2021 , it should be 1/01/2022 but it only occurs on this date why is that ?
As you can see the value of pharmacyRestrictionDate is 2022-01-01T00:00:00 why is it displaying 1/01/2021 ? but when I remove the pipe the date is correct. Any idea?
#html code
<div> Until {{dealData.dealTypeValues.pharmacyRestrictionDate | date:'MM/dd/YYYY'}}</div>