Digital Clock | With Date (Day, Month, Year) - Using HTML, CSS & Javascript

Sdílet
Vložit
  • čas přidán 1. 07. 2020
  • In this tutorial, you can learn how to design a digital clock with date using CSS, HTML, and Javascript. This digital clock includes Date (Day, Month, Year), Time (Hours, Minutes, Seconds), and Period (AM/PM). The clock is in 12 hours format. Hope you guys enjoy this tutorial.
    Another awesome tutorial for creating a digital clock with more features ❤️❄️
    ---------------------------------------------------------------------------------------------------------------------------------
    Digital Clock Design | With 12-hour/24-hour Format Switcher - Html, Css & Javascript
    ▶️ Video Link - • Digital Clock Design |...
    ∎ Get This Project Source Codes - www.buymeacoffee.com/codingsn...
    + Like and Subscribe 🔔 for More! ❤
    Book Me 🔖
    -----------------------
    ∎ Book me to Fix your project Bugs & Issues - www.buymeacoffee.com/codingsn...
    ∎ Book me to Convert your Figma, PSD, and XD Design to an HTML Website - www.buymeacoffee.com/codingsn...
    ∎ Download File Setup and Images - codingsnow.com
    ∎ Download All Source Files On Patreon - / 43063759
    ∎ Facebook Page - / codingsnow
    ∎ Instagram - / coding.snow
    ∎ Support From Paypal - paypal.me/codingsnowget
    Support My Works ❤️❄️
    --------------------------------------------
    ∎ Buymeacoffee - www.buymeacoffee.com/codingsnow
    ∎ Patreon - / codingsnow
    #cssdigitalclock #digitalclockjs
    Background music:
    ____________________
    Track: Good Life - JayJen & Roa [Audio Library Release]
    Music provided by Audio Library Plus
    Watch: • Good Life - JayJen & R...
    Free Download / Stream: alplus.io/good-life
    Me & You by MusicbyAden / musicbyaden
    Creative Commons - Attribution-ShareAlike 3.0 Unported - CC BY-SA 3.0
    Free Download / Stream: bit.ly/_me-and-you
    Music promoted by Audio Library • Me & You - MusicbyAden...

Komentáře • 153

  • @malolansriram6328
    @malolansriram6328 Před 3 lety +10

    It works smooth with the animation attribute...loved it!

  • @shakatech_zone3926
    @shakatech_zone3926 Před 3 lety +1

    Beautiful work.

  • @shirocode463
    @shirocode463 Před 2 lety +10

    for me the date, day, year are showing correctly, but those time and period are not showing, though i copied your source code because when i try the same error came

  • @ballabhsodhani
    @ballabhsodhani Před 2 lety +1

    i also did the same and it was amazing thank you

  • @Unknown.csssss
    @Unknown.csssss Před 9 měsíci

    Thanks broo!! This is my second project to my learning

  • @gharbiislem1885
    @gharbiislem1885 Před 2 lety

    thanks you very much . your work is clean AF xD . Keep the hard work

  • @Saidur07
    @Saidur07 Před 3 lety +1

    Fabulous!

  • @aadityathakur3548
    @aadityathakur3548 Před 3 lety

    Thankyou very much buddy. Great Tutorial.

  • @theonlybow5130
    @theonlybow5130 Před 6 měsíci

    it works smoothly, can you make an updated version of this where if next day is new year then show firework show

  • @programmistph3393
    @programmistph3393 Před 3 lety +1

    I love this

  • @samuelk1623
    @samuelk1623 Před 4 lety +3

    Wonderful! 😍😍😍

  • @tariqulislam7583
    @tariqulislam7583 Před 3 lety

    Nice works indeed :)

  • @2005Azm
    @2005Azm Před 4 lety +2

    Fantastic!!

  • @Global-y8p
    @Global-y8p Před 2 lety

    Thank you so much 🥰💓🥰

  • @nasirmedia
    @nasirmedia Před rokem +2

    Where past the html code?

  • @youssefnageh7966
    @youssefnageh7966 Před 2 lety

    thank you verry much you are amazing person

  • @roshankalamkar7752
    @roshankalamkar7752 Před 2 lety +3

    its not showing any thing like time is 00 :00: 00 am but why

  • @themiyalumia1383
    @themiyalumia1383 Před 3 lety +1

    *very help full **_Thank You_*

  • @pathmashanthasenanayaka3193

    Wow..💪💪

  • @Mariamstacks
    @Mariamstacks Před 3 lety +1

    Hi, transition property backrgound, box-shadow is not working for me

  • @afifahmahin8137
    @afifahmahin8137 Před 3 lety

    Wow.. this video is amazing..

  • @mujammilhaque1852
    @mujammilhaque1852 Před 3 lety

    Awesome video and background music is amazing 🙃🙃

  • @figname7852
    @figname7852 Před 4 lety +1

    thanks ad this video , very nice

    • @CodingSnow
      @CodingSnow  Před 4 lety

      You're most welcome! ❤️❤️❤️

  • @keisanfeodery4032
    @keisanfeodery4032 Před 3 lety

    Linear-gradient not recoignized in my vscode.. any other option or solution?

  • @RAAZDIARIES
    @RAAZDIARIES Před 3 lety

    Thank a lot

  • @MadaraUchiha_404
    @MadaraUchiha_404 Před 2 lety

    thank you

  • @vishwamohandoss1512
    @vishwamohandoss1512 Před 3 lety +1

    Bro clock in left align but need right how can i change it I try center into right but none to change

  • @bluepants8140
    @bluepants8140 Před rokem +1

    I am having an issue with the .pad(2) for the hours, minutes, and seconds if anyone could help me I would really appreciate it. Thank you!

  • @AlanJojy
    @AlanJojy Před 3 lety

    Bro what if the local time is not correct.. like my laptop time is wrong... so what to do.... or is this viedo showing the world time tutorial.... or how to make a digital clock according to location... do u know ??

  • @zerinzaker21
    @zerinzaker21 Před rokem

    Thanks.

  • @jameebashir3087
    @jameebashir3087 Před rokem

    thanks

  • @zeronine570
    @zeronine570 Před 3 lety

    Subscribed :) Nice work sir!!

  • @YoYo-zo1ns
    @YoYo-zo1ns Před 4 lety +1

    thanks bro this video

  • @rishisharma8714
    @rishisharma8714 Před 3 lety +1

    Which code editor is he using ?

  • @nilufaakter5402
    @nilufaakter5402 Před 2 lety

    this line isn''t working -webkit-box-reflect: below 1px linear-gradient(transparent, rgba(255, 255, 255, 0.1)); . can you plz tell me why

  • @tharinduabishek2505
    @tharinduabishek2505 Před 4 lety +2

    Excellent🤟🤟😁

  • @NYTESHYFT
    @NYTESHYFT Před 3 lety

    My code says "Cannot read property of firstChild of null." Have any tips?

  • @avinashrc8251
    @avinashrc8251 Před 2 lety

    thx bro

  • @rolando8966
    @rolando8966 Před rokem

    Yaaaassss 👨🏻‍💻 👌🏽🔥🔥🔥🔥💎🙏🏽

  • @Sage-xd9oc
    @Sage-xd9oc Před 2 lety

    I'm doing this is vsc but why is the js part is in white color for my code pls help

  • @malamhari_
    @malamhari_ Před 4 lety

    Love it!

    • @CodingSnow
      @CodingSnow  Před 4 lety

      Thank you! ❤❤❤

    • @malamhari_
      @malamhari_ Před 4 lety +1

      Can someone explain what is the purpose of code lines number 47 - 50? I can see it works to configure the number of hour, minutes, and seconds. But actually how it works ? Sorry for bad english, thanks in advance :)

    • @CodingSnow
      @CodingSnow  Před 4 lety

      @@malamhari_ It is for the digits.
      hou.pad(2), min.pad(2), sec.pad(2)
      Imagine time is 06 : 08 : 04 PM
      Without 47-50 line function, time will display 6 : 8 : 4 PM without 2 digits.
      If it is .pad(5) like below,
      hou.pad(5), min.pad(5), sec.pad(5)
      Time will display 00006 : 00008 : 00004 PM

    • @malamhari_
      @malamhari_ Před 4 lety

      @@CodingSnow I see now it's all make sense, thank you again sir. You're very kind :D

  • @chefnabil171
    @chefnabil171 Před 2 lety

    Nice Works

  • @zanispleve1777
    @zanispleve1777 Před 2 lety

    Hi! I have same code, but i changed that to 24h, but it is not working can you please say how to repair it

  • @Shubham-zu1zh
    @Shubham-zu1zh Před 10 měsíci +1

    There is a bug , the time is between (12.00- 1.00) in that time it shows
    exp: 12.14 AM which is actually to be 12.14PM ..

  • @Mehedihasan-nt5zk
    @Mehedihasan-nt5zk Před 3 lety +2

    wow! love for BD

  • @TechWithAndrew
    @TechWithAndrew Před 2 lety

    How can I make it so it's only Eastern time?

  • @00000000060
    @00000000060 Před 2 lety

    Im trying this with angular and Visual Code and its not working! any help ?

  • @wsjgamer4898
    @wsjgamer4898 Před rokem +1

    I'm using VScode and copy the all code but it's not working (Java code), so what I'm doing wrong.😅

  • @steventisdol4156
    @steventisdol4156 Před 2 lety

    I wanted to try this but it's not working.. lol I'll keep trying. This looks really cool!

  • @Theysayrdg
    @Theysayrdg Před 2 lety

    Is this a dynamic webpage

  • @senor_shorts
    @senor_shorts Před 3 lety

    AWesome

  • @abdulmoiz1074
    @abdulmoiz1074 Před 3 lety

    bro can you help me add a alarm clock in this code?

  • @BlockOfCode
    @BlockOfCode Před 3 lety

    Bro your videos are Tooo good I liked it and subscribe 😉

    • @CodingSnow
      @CodingSnow  Před 3 lety +1

      Glad you liked it bro! 🙂

    • @BlockOfCode
      @BlockOfCode Před 3 lety

      @@CodingSnow bro but I need your help when we view a single product how we can make that interface plse will you make a video on it I'm making an e-commerce website project 👍 it will help others too

    • @CodingSnow
      @CodingSnow  Před 3 lety

      @@BlockOfCode I've already done a video for a product card with a quick popup view. I think it might be helpful to you. Link - czcams.com/video/tXbXQMKHTno/video.html

  • @OrgilsYTChannel
    @OrgilsYTChannel Před 3 lety

    Thank you nice

    • @jadijohnson2899
      @jadijohnson2899 Před 3 lety

      czcams.com/video/-FwQLAjqkN4/video.html digital clock javascript project .

    • @CodingSnow
      @CodingSnow  Před 3 lety

      Most welcome ❤

  • @omkarkhadul1237
    @omkarkhadul1237 Před 3 lety

    Which site you used for running the code

  • @user-dm7tw8do6h
    @user-dm7tw8do6h Před 3 lety

    Video is more than wonderful
    Can you send the code to make sure that the codes are written correctly?

    • @CodingSnow
      @CodingSnow  Před 3 lety

      Glad you like it!
      Source codes available in the channel website. Link in the description.

  • @mrprofessional2466
    @mrprofessional2466 Před 3 lety

    Are You From? Where You Learned JS?

  • @darshanraja
    @darshanraja Před 2 lety

    Please make video how to download this software 🙏🙏🙏

  • @dob1wan174
    @dob1wan174 Před 4 lety

    Super

  • @vona5251
    @vona5251 Před rokem

    I tried it with dreamweaver, it does not work

  • @afreenappu9917
    @afreenappu9917 Před 3 lety

    wow.............

  • @triptikushwaha4653
    @triptikushwaha4653 Před 2 lety

    Can you please tell where i am wrong... I have written the same code and everything is fine its just my clock is not uploading by itself....

    • @motivationtomove8979
      @motivationtomove8979 Před 2 lety +1

      use the below code at end of the script "var intervalId = window.setInterval(function(){
      updateClock()
      }, 1000); "

  • @tharinduabishek2505
    @tharinduabishek2505 Před 4 lety +2

    Super🤟🤟❤️💓😘

  • @behruz_abdujalilov
    @behruz_abdujalilov Před 2 lety

    It does not works. I have a bit problem with JS

  • @allvideosintamil1157
    @allvideosintamil1157 Před 2 lety

    Bro how to put greater than or equal symbol please tell me

    •  Před rokem

      [altgr "y, shift7"] >=

    •  Před rokem

      >=

  • @alicomando1195
    @alicomando1195 Před 2 lety

    Hi
    I liked Your Video
    How Can I Make 24 Hours 45 munutes Clock
    In Html or other codes
    Like for Example Mars Time
    Has 24 hours 39 minutes
    Lets Say we Found A Planet
    That Has 24 Hours and 45 Minutes
    Thanks

  • @sheikhrdxarman6573
    @sheikhrdxarman6573 Před 3 lety +1

    its not work how can me help !

  • @moch.irvansyah4127
    @moch.irvansyah4127 Před 4 lety +1

    I want ask, why the clock on my website doesn't work?

    • @CodingSnow
      @CodingSnow  Před 4 lety

      It should work. Did you try it with the downloaded source files?

    • @moch.irvansyah4127
      @moch.irvansyah4127 Před 4 lety

      @@CodingSnow ooh, i see... it's something wrong. Sorry, i was wrong. it's work. Thanks.

    • @CodingSnow
      @CodingSnow  Před 4 lety +1

      @@moch.irvansyah4127 You're welcome! ❤️❤️❤️

    •  Před rokem

      @@CodingSnow Source file? Are you thinking about the single *{} setting and the commented scripts, which cannot be used by default?

  • @rahim3070
    @rahim3070 Před 3 lety +1

    Excellent work. Can you please fix a timezone like Europe/Berlin. Advance thanks.

    • @CodingSnow
      @CodingSnow  Před 3 lety +1

      Thank you and welcome! ❤. It is working with the timezone you in.

  • @BLINDFOLD-cb2yp
    @BLINDFOLD-cb2yp Před 3 lety

    Your clock stuck at hover in Mobile

  • @mustafamakina843
    @mustafamakina843 Před 3 lety +3

    hello i am using an atomic code editor
    I have 1 html and css file in the same folder,
    everything is ok but the hour is not coming
    how can I do it? Thank you

  • @nilufaakter5402
    @nilufaakter5402 Před 2 lety

    refiect works in crome but it doesn''t work on firefox

  • @danielpekk4590
    @danielpekk4590 Před 2 lety

    What's the program name?

  • @Makz31
    @Makz31 Před 3 lety

    how can i make this 24h clock?

    • @CodingSnow
      @CodingSnow  Před 3 lety +1

      Remove the javascript lines below.
      if(hou == 0){
      hou = 12;
      }
      if(hou > 12){
      hou = hou - 12;
      }

    • @Makz31
      @Makz31 Před 3 lety

      @@CodingSnow Thanks!

    • @CodingSnow
      @CodingSnow  Před 3 lety

      @@Makz31 You're welcome! ❤️

  • @naomiasabellia3254
    @naomiasabellia3254 Před rokem

    copy of the html code pls

  • @ritikapatidar1790
    @ritikapatidar1790 Před 3 lety

    The clock and everything works but the numbers are not moving does anyone know why this is happening?

  • @subratarudra2745
    @subratarudra2745 Před 2 lety

    I don't know why in my case the data are not getting updated until i reload the page ?

    • @Tivinity
      @Tivinity Před 2 lety

      same issue i'm having, did you have any luck in fixing it?

    • @subratarudra2745
      @subratarudra2745 Před 2 lety

      @@Tivinity no, still I am not able to fix that issue

    • @mm-sq4gb
      @mm-sq4gb Před rokem

      you have to call the new date() function in setInterval method so that it gets updated every second

    • @subratarudra2745
      @subratarudra2745 Před rokem

      @@mm-sq4gb Thanks!

  • @Letsgooboi
    @Letsgooboi Před 2 lety

    omg you also use atom

  • @maninaredla4840
    @maninaredla4840 Před 2 lety

    It's not working

  • @tragicgamer81
    @tragicgamer81 Před 11 měsíci

    this code is'nt working 😫😫

  • @scpf2360
    @scpf2360 Před rokem +1

    Who Just Came Here To Learn: -webkit-box-reflect
    👇

  • @arulraj1417
    @arulraj1417 Před 3 lety +3

    Hi,
    I have been done all the things right and I have checked the mistakes also
    Every thing is working perfect but
    ‼️Im not able to see time changeing itself it's stuck with 0 hr/min/sec/months and year
    Wts the solution for this????....

  • @MDIslam-kv6rz
    @MDIslam-kv6rz Před 3 lety

    Hello brother Brother, I am one of your subscriber brothers. I always like and comment on all your videos. Brother, I need your help right now. Please help me.

  • @aabthafmathani2912
    @aabthafmathani2912 Před 2 lety

    this is not working

    • @CodingSnow
      @CodingSnow  Před 2 lety

      If this is not working ew digital clock design tutorial available. Please check the latest videos.

  • @carpproductions9124
    @carpproductions9124 Před 2 lety

    didnt work

    • @stevenwoods9403
      @stevenwoods9403 Před 2 lety +1

      Check your code. All it takes for nothing to work is maybe a comma missing or some other typo. Trust me: been there, done that. It's frustrating when sh*t doesn't work, but in 9 out of 10 situations it's probably just a silly typo.

  • @litunkhan4309
    @litunkhan4309 Před rokem

    hey my var lover boy you love var your life is var var var hahahahahahahaha

  • @jr4560
    @jr4560 Před 3 lety

    NONE OF IT WORKED

  • @MDIslam-kv6rz
    @MDIslam-kv6rz Před 3 lety

    Hello brother Brother, I am one of your subscriber brothers. I always like and comment on all your videos. Brother, I need your help right now. Please help me.

  • @MDIslam-kv6rz
    @MDIslam-kv6rz Před 3 lety

    Hello brother Brother, I am one of your subscriber brothers. I always like and comment on all your videos. Brother, I need your help right now. Please help me.

  • @MDIslam-kv6rz
    @MDIslam-kv6rz Před 3 lety

    Hello brother Brother, I am one of your subscriber brothers. I always like and comment on all your videos. Brother, I need your help right now. Please help me.

  • @MDIslam-kv6rz
    @MDIslam-kv6rz Před 3 lety

    Hello brother Brother, I am one of your subscriber brothers. I always like and comment on all your videos. Brother, I need your help right now. Please help me.

  • @MDIslam-kv6rz
    @MDIslam-kv6rz Před 3 lety

    Hello brother Brother, I am one of your subscriber brothers. I always like and comment on all your videos. Brother, I need your help right now. Please help me.