How to format a date in angularjs?



How to format a date in angularjs?..

Answer / Sandeep Gupta

In AngularJS, you can use the built-in filter 'date' to format dates. To use it, you need to include the 'ng' module and add the 'date:' attribute followed by your desired format inside double curly braces ({{}}) in your HTML element.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is a decorator in angular 6?

1 Answers  


What is RouterOutlet?

1 Answers  


How to update angular 6 to angular 7?

1 Answers  


Explain ngmodule?

1 Answers  


How do you use $filter?

1 Answers  


List some cons or disadvantages of using angularjs?

1 Answers  


What is candeactivate?

1 Answers  


What is "track by" in angularjs and how does it work?

1 Answers  


what are directives? Mention some of the most commonly used directives in angularjs application?

1 Answers  


What is json web token?

1 Answers  


How will you show/hide buttons and enable/disable buttons conditionally?

1 Answers  


Why you use browsermodule, commonmodule, formsmodule, routermodule, and httpclientmodule?

1 Answers  


Categories