heySushil
heySushil

Reputation: 499

How can I get server date and time in angularjs?

Local system time and date may be wrong. Hence I want server time and date in my AngularJs project but I can't find a solution yet. How do I get the server date and time?

Upvotes: 0

Views: 3143

Answers (1)

Siva Senthil
Siva Senthil

Reputation: 610

The way out would be to create a JSON web service which gives the date and time and call it from angularjs. The web service could be developed in any server side programming language - PHP, ASP.NET, etc..

Upvotes: 1

Related Questions