bevarse Posted July 13, 2017 Author Report Posted July 13, 2017 7 minutes ago, Suhaas said: Yes. You are right. It is always populating the first row status. tried to add another eachloop to the status but sdi kuda first row ye populate chestundi Quote
karna11 Posted July 13, 2017 Report Posted July 13, 2017 i think u r date format is coming wrong , you should do some thing for right format var countDownDate = new Date(myData).getTime(); consol.log(countDownDate ); below four values vasthunnyyi break point peditheee 1499961168000 1499921568000 NaN NaN Quote
bevarse Posted July 13, 2017 Author Report Posted July 13, 2017 18 minutes ago, karna11 said: i think u r date format is coming wrong , you should do some thing for right format var countDownDate = new Date(myData).getTime(); consol.log(countDownDate ); below four values vasthunnyyi break point peditheee 1499961168000 1499921568000 NaN NaN for some reason jquery Date().getTime(); aa long number istundi. Anduke I'm calculating it below like this var days = Math.floor(distance / (1000 * 60 * 60 * 24)); var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); var seconds = Math.floor((distance % (1000 * 60)) / 1000); PS: idi anta w3 schools lo vundi naa sonta logic kaadu all I'm trying to do is set the timer on each row Quote
SBAG Posted July 13, 2017 Report Posted July 13, 2017 try parsing the string to dateformat. var countDownDate = new Date(Date.parse(myData)); alert(countDownDate) this return Thu Jul 13 2017 11:52:48 GMT-0500 (Central Daylight Time) for the first row. 7/13/2017 13:52:48 AM -This date returns invalid.. Quote
SBAG Posted July 13, 2017 Report Posted July 13, 2017 this is also incorrect date format var now = new Date().getTime(); alert(now) returns 1499976834037 Quote
bevarse Posted July 13, 2017 Author Report Posted July 13, 2017 8 minutes ago, SBAG said: this is also incorrect date format var now = new Date().getTime(); alert(now) returns 1499976834037 Date formatting tho issue yemi ledu bhayya. Issue is that only the first row gets updated and not others. Quote
Suhaas Posted July 13, 2017 Report Posted July 13, 2017 There you go bro. http://jsfiddle.net/hpxrt9tb/24/ Meeting lo unde. Late ayindi zara. 1 Quote
bevarse Posted July 13, 2017 Author Report Posted July 13, 2017 25 minutes ago, Suhaas said: There you go bro. http://jsfiddle.net/hpxrt9tb/24/ Meeting lo unde. Late ayindi zara. you rawcked bro super ippudu nuvvu ichhina code ni ardam chesukovali -- yenta time padutundo ardam avvadaniki Quote
Suhaas Posted July 13, 2017 Report Posted July 13, 2017 4 minutes ago, bevarse said: you rawcked bro super ippudu nuvvu ichhina code ni ardam chesukovali -- yenta time padutundo ardam avvadaniki Sure Bro. Happy to help. Pedha changes em levu. Emaina questions unte msg me. Quote
Biskot Posted July 13, 2017 Report Posted July 13, 2017 41 minutes ago, Suhaas said: There you go bro. http://jsfiddle.net/hpxrt9tb/24/ Meeting lo unde. Late ayindi zara. nice bro. Quote
karna11 Posted July 13, 2017 Report Posted July 13, 2017 2 hours ago, Suhaas said: There you go bro. http://jsfiddle.net/hpxrt9tb/24/ Meeting lo unde. Late ayindi zara. Nice recurrisive approach, function as parameter and call back TS , stackoverflow looo veyyi Question, Suhas akkada answer chesthaduu, he 'll get reputation Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.