Posted on: 11/19/2012 12:11:12 AM | Views : 389

n my proj, I've 4 time schedules. First is 8am To 12 pm , second is the 12pm to 4pm, 4pm to 8 pm and 8 pm to 12 am.  How can I show the server time remaining for next closing
e.g. if suppose now the time is 11:44:45 am then it should show time remaining for next closing is 00:16:05.
It should fetch the server time. not a local time.
I've some code :
<script type="text/javascript"> var minutes; var seconds; var hours; function getDateValues() { timeString = document.getElementById("hdnTime").value; SplitTimeResult = timeString.split(":"); hours = SplitTimeResult[0]; minutes = SplitTimeResult[1]; seconds = SplitTimeResult[2]; timer = setTimeout("start()", 1000); } function start() { if (seconds - 1 == 0) { ...

Go to the complete details ...