When I use the pipe date:'MM/dd/YYYY' to display the date 2022-01-01T00:00:00, it shows as 1/01/2021 instead of 1/01/2022. This issue only occurs with this specific date. Why does this happen?
The value of pharmacyRestrictionDate is 2022-01-01T00:00:00 but it displays as 1/01/2021. However, when I remove the pipe, the date is correct. Any thoughts on why this might be?
#html code
<div> Until {{dealData.dealTypeValues.pharmacyRestrictionDate | date:'MM/dd/YYYY'}}</div>