How can I get current date and time in angularjs
angularjs
I have tried the following:
{{Date.Now}}
But it d
In Component file:
this.registerDate = new Date().toJSON("yyyy/MM/dd HH:mm"); this.updateDate = new Date().toJSON("yyyy/MM/dd HH:mm");
In Template file:
{{registerDate}} {{updateDate}}
Result will return: