+1 vote
in Angular by

How will you convert a string into a date?

1 Answer

0 votes
by

date filter is used to convert the input string to date format.

In below example, we've added date filter to an expression using pipe character. Here property value will be converted to date format.

<div> 

   The date of this Tutorial is {{newdate | date:"MM/dd/yy"}}

</div> 

...