Latest news
Home » javaScript » How to get current time with jQuery?

How to get current time with jQuery?

<script type=”text/javascript”>

var TodayDate=new Date();
var currentHours = TodayDate.getHours();
var  currentMinutes = TodayDate.getMinutes();
var  currentSeconds = TodayDate.getSeconds();

</script>

Leave a Reply

x

Check Also

How to Check Expired Sessions using jQuery Ajax and PHP

We can achieve using the php and ajax.The following ajax call execute in every 10 ...