Naidu K

Naidu K

  • 1.9k
  • 65
  • 703

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 (2)