How to get date and time in Angular 4,5,6 and above using DatePipe

后端 未结 3 1631
终归单人心
终归单人心 2021-02-04 09:47

I am working in an angular 4 application, Here I need to get the current Date and Time Using angular DatePipe.

I want to get the date and time

3条回答
  •  臣服心动
    2021-02-04 09:59

    Uses the function formatDate to format a date according to locale rules.

    {{ value_expression | date [ : format [ : timezone [ : locale ] ] ] }}
    

    It may be useful:)

提交回复
热议问题