0

i m running a count down for the deals page in my project it is working fine in chrome and Firefox but in IE it gives NAN on every box of my code is as in c the value is; the link of my project is http://blog.merimobiles.com/deals/customer.php var c = '02 28 2013, 23:59:59';

var count=0;
$(document).ready(function ()
{
var c = <?php echo $date ;?>; 
$('#superoffer'+count).epiclock({mode: $.epiclock.modes.countdown, time: new Date(c)});
count++;
}); 

enter image description here

Shahbaz
  • 3,433
  • 1
  • 26
  • 43
  • check here you may get some useful things : http://www.solvethiserror.com/javascript/javascript-countdown-clock-not-working-in-ie-or-ios-solution-7-238368.asp#Post_235207 – Amrendra Feb 28 '13 at 06:30

1 Answers1

1

You can read this question which will allows you to solve your problem. Please check the accepted answer.

Date constructor returns NaN in IE, but works in Firefox and Chrome

The Date constructor in JavaScript needs a string in one of the date formats supported by the parse() method.

Community
  • 1
  • 1
Techie
  • 44,706
  • 42
  • 157
  • 243
  • i have done it by parsing the date thanks – Shahbaz Feb 28 '13 at 08:23
  • Since you are new here, accept the answer(tick) which solved your problem. Up-vote(up arrow) the answer(s) which give(s) you information or help(s) you. Down-vote(down arrow) the answer(s) which are fake. – Techie Feb 28 '13 at 08:25