Home > database >  angular how to format date without 0 in month
angular how to format date without 0 in month

Time:09-09

How do I format the date same format as MM/dd/YYYY but with no 0 in month like , ..Thanks.

instead of 02/20/2021
it should be 2/20/2021

#currentCode
{{data.targetDate | date:'MM/dd/YYYY'}}

CodePudding user response:

@MikeOne and @BizzyBob answered you correctly, here you have stackblitz which show that it works correctly

  • Related