search

Home  >  Q&A  >  body text

How do I do date counting like this?

I want to make a clock/calendar like this webpage.

https://uawar.net/stats

I don't know if this requires js in my html code. But when I check the div-counter time of the webpage, I am '' and the time flashes in purple.

How to make a clock/calendar like this?

P粉823268006P粉823268006522 days ago581

reply all(1)I'll reply

  • P粉511749537

    P粉5117495372023-09-10 09:12:26

    Yes, your function requires HTML and Javascript to run with live date and time.

    This is an example: Then you need to add javascript functions to update them.

    <!DOCTYPE html>
    <html>
    <head>
      <title>Countdown Timer</title>
      </head>
    <body>
    <div class="countdown">
            <span id="days">00</span>:
            <span id="hrs">00</span>:
            <span id="min">00</span>:
            <span id="sec">00</span>
       </div>

    reply
    0
  • Cancelreply