+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> 

Related questions

0 votes
asked Oct 20, 2020 in JAVA by sharadyadav1986
0 votes
asked Mar 20, 2021 in JavaScript by sharadyadav1986
...