title: I want to retrive updated_at from database and Store as H:M:S in javascript
body: <p>I am making chapters that has to be unlocked after every 24 hrs so I want to retrieve updated_at and store in Javascript variable and then I want to disable the href links after every 24 hrs.</p>
  
  <p>I have tried the logic but it didn't worked</p>
  
  <pre><code>&lt;script&gt;
        var date = new Date();
        date = {{$updated_at[0]}};
        console.log(date);
  &lt;/script&gt;
  
  @if(coins[0] == 0)
  &lt;a href="" class="disabled"&gt;
  &lt;a href="" class="disabled"&gt;
  &lt;a href="" class="disabled"&gt;
  @endif
  </code></pre>