Friday, 27 September 2013

How to Set DAte and Time With Javascripts

                           HOW TO SET DATE AND TIME WITH SCRIPTS

Here is the Source code for adding current time and date to your project with javascripts.

<script type="text/javascript">
var d=new Date();
document.write('Today is ' + d + ' <br> ');

Example output is shown below:

Today is Wed Sep 18 2013 10:47:51 GMT-0700 (Pacific Standard Time)

by #AdminBiigzee remember to share and like this post!!!

No comments:

Post a Comment