how to get the date of the server with JQuery

2

I'm trying to get the date from the server, I know to get the server date with php, but will it be possible with JQuery?

    
asked by anonymous 29.12.2015 / 08:00

2 answers

4

Only with Jquery can not get the server date. Since Jquery is a javascript framework where it is only executed in the user's browser.

    
29.12.2015 / 08:12
-1

It is possible to put this code in javascript on the page:

var variavelDataJquery = "<?=date('d/m/Y H:i:s');?>";

    
29.12.2015 / 11:50