Naidu K

Naidu K

  • NA
  • 87
  • 20.4k

Convert Date time to YYYY-MM_DD in Angular

Mar 3 2021 5:15 PM
I want to convert current data into 'yyyy-MM-dd' format in .ts file. i template it can easily be done by using data pipe. how to do that in typescript.
 
Thanks in advance.

Answers (3)