Join the Stack Overflow Community
Stack Overflow is a community of 6.4 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

I am using angularjs client side application and working with date and time. My problem is that local system date anyone can change, to protect this i want to use server date without ant get or post req. Is there any way to get server date using javascript?

share|improve this question
1  
Wait. JavaScript is client-side language. You will need to "ask" server-side to fetch its time. Note that connection & loading time may affect the accuracy of time obtained – Raptor 19 hours ago
    
you will need additional ajax request – YOU 17 hours ago
    
yeah.... loading may affect the accuracy of the time....with ajax post req is it possible? – abhimanyu 17 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.