Date and time in depth in javascript | chair aur

Sdílet
Vložit
  • čas přidán 28. 02. 2023
  • Visit chaicode.com for all related materials, community help, source code etc.
    github.com/hiteshchoudhary/js...
  • Věda a technologie

Komentáře • 368

  • @NonToxic404
    @NonToxic404 Před 11 měsíci +79

    This course has no price label because this masterpiece is priceless ❤

    • @NonToxic404
      @NonToxic404 Před 11 měsíci +5

      Can't Believe I got a heart ❤️ so much love from Bihar❣️

    • @shivanshbhatnagar2725
      @shivanshbhatnagar2725 Před 5 měsíci +5

      @@NonToxic404 tu kam kr apna

    • @user-wr6hl9qd9u
      @user-wr6hl9qd9u Před 2 měsíci

      @@shivanshbhatnagar2725 😂😂😂😂😂😂

    • @Rahul-bx7on
      @Rahul-bx7on Před měsícem

      @@shivanshbhatnagar2725 🤣🤣🤣

  • @keshavkattel
    @keshavkattel Před 9 měsíci +47

    // Date : Date is an object in javascript.
    // JavaScript stores dates as number of milliseconds since January 01, 1970
    const myDate = new Date();
    console.log(myDate) //Output : 2023-10-09T14:38:09.847Z
    // We can use various methods to convert this date into more readable value.
    console.log(myDate.toString()) //Output : Mon Oct 09 2023 07:39:18 GMT-0700 (Pacific Daylight Time)
    console.log(myDate.toLocaleString()) // Output : 10/9/2023, 7:44:20 AM
    console.log(myDate.toLocaleDateString()) //Output : 10/9/2023
    console.log(myDate.toLocaleTimeString()) // Output : 7:45:31 AM
    console.log(myDate.toDateString()) //Output : Mon Oct 09 2023
    console.log(myDate.toTimeString()) // Output : 07:46:40 GMT-0700 (Pacific Daylight Time)
    console.log(myDate.toISOString()) // Output : 2023-10-09T14:43:39.337Z
    console.log(myDate.toJSON()) //Output : 2023-10-09T14:40:58.495Z

    • @ashok-bhaargaw
      @ashok-bhaargaw Před 8 měsíci +3

      bhai,
      toISOString and toISOString me output same kyu aata he?

    • @raginiroy9929
      @raginiroy9929 Před 6 měsíci +3

      @@ashok-bhaargaw bhai toISOString () or toISOString mein difference kya dikh rha zara batana?you might wrote the same function twice!

    • @AmanKumar-qz4jz
      @AmanKumar-qz4jz Před 6 měsíci

      @@raginiroy9929 wahi toh ragini

    • @Batman_69_
      @Batman_69_ Před 4 měsíci

      @@raginiroy9929 He was trying to ask the difference between toISOString() and toJSON()

    • @honblegaurav9917
      @honblegaurav9917 Před měsícem

      tumhara time pacific daylight time me kaise aa rha?

  • @Vedicaa
    @Vedicaa Před 8 měsíci +30

    I have tried learning javascript from multiple sources on CZcams, but the simplicity and organisation with which you teach is mind blowing. You cover the topics that other teachers don’t bother to cover. Thank you!

  • @RaviSingh-wc5fe
    @RaviSingh-wc5fe Před 7 měsíci +17

    Sir thumbnail me date ki jagah data likha hai 😎😎😎

  • @RandomRaju-zb8vf
    @RandomRaju-zb8vf Před 10 měsíci +5

    You have put so much effort into your videos.....Thank you for providing these free contents.....Love You from Uttar Pradesh

  • @adnanahmad1234
    @adnanahmad1234 Před 8 měsíci +4

    Never found learning Javascript this interesting before this. Thank you Hitesh sir ❤

  • @Securitywasted128
    @Securitywasted128 Před 10 měsíci +1

    Thanks sir for such amazing and in depth video.Your content is full depth of knowledge wether hindi or english.

  • @abhishekkalagurki959
    @abhishekkalagurki959 Před 7 měsíci

    sir's voice is so smooth to hear , it feels i am listening to a story

  • @ankursinger102
    @ankursinger102 Před rokem +8

    Sir mene kafi javaScript ke course dekhe but aapka style boht crystal clear hai....we cant thank you enough sir to teach us that much in free❤

  • @user-mo1sy5ck7r
    @user-mo1sy5ck7r Před 4 měsíci

    best Series ALL OVER UNIVERSE, thank you Sir 🙏

  • @kankal5076
    @kankal5076 Před 10 měsíci

    This course is very help full in free of cost

  • @IamMark-id8wi
    @IamMark-id8wi Před 9 měsíci +1

    Thank you sir for giving us a amazing J.S tutorial
    @chai aur code ❤❤

  • @nobbiesid1324
    @nobbiesid1324 Před 6 měsíci +1

    Thankyou bhaiya for providing this amazing content
    🥰😃

  • @Aryannamdev72
    @Aryannamdev72 Před 9 měsíci

    maja aa gaya sir
    ek number sir love from (MP) Shahdol district

  • @umer402
    @umer402 Před rokem +68

    toString() : Sun May 07 2023 14:16:39
    toDateString() : Sun May 07 2023
    toTimeString() :14:19:03 GMT+0500 (Pakistan Standard Time)
    toLocaleString() : 5/7/2023, 2:20:24 PM
    toISOString() : 2023-05-07T09:21:22.167Z
    toUTCString() : Sun, 07 May 2023 09:24:48 GMT

    • @honblegaurav9917
      @honblegaurav9917 Před měsícem

      how are you getting time in your time zone?

    • @hitfromcs
      @hitfromcs Před 15 dny

      @@honblegaurav9917 it appears by default for me. It uses internet connectivity to find your current timezone

  • @nirmalchouhan3112
    @nirmalchouhan3112 Před rokem +3

    i thing i want to say that i m in love with yr lecture after watching that😍😍😍😍😘😘...thanks a lot guru g

  • @nnmm-ft1mx
    @nnmm-ft1mx Před dnem

    preety good course, covers everything in depth

  • @user-rg7bi1qp2l
    @user-rg7bi1qp2l Před 11 měsíci

    very helpful video for beginners. thank you for making this type of valuable content for free...

  • @BitFire007
    @BitFire007 Před 4 měsíci

    "Chai aur Code, you've earned a special place in every JavaScript learner's heart. Outstanding work!"

  • @user-dp4lm8yx7l
    @user-dp4lm8yx7l Před 9 měsíci

    isi topic par video dhundh raha tha..much needed video for me..thank you bhai ji..you got new subscriber from heart.sab dosto ko bhi share kardi gai hain..keep it up brother😍

  • @YamrajShrestha
    @YamrajShrestha Před 10 měsíci +5

    These tutorials have not only helped me learn a lot but have also ignited a passion for JavaScript. The explanations are clear, the examples are practical, and the learning experience has been truly enjoyable.

  • @CodingSphere381
    @CodingSphere381 Před 5 měsíci +1

    Sooooo nice bro your content and way of teaching is undescribable(very easy and understanding. 💓💓 May God bless you all happinesse and bless you success in every step of life. Ramember me also in your special prayers

  • @shashankkumarpandey4184
    @shashankkumarpandey4184 Před 6 měsíci +1

    Understood everything, thank you sir

  • @prasadtambde3894
    @prasadtambde3894 Před 9 měsíci +4

    Anyone observer Video creation time is Morning 5 AM. What a dedication Love from Maharashtra ❣

    • @chaiaurcode
      @chaiaurcode  Před 9 měsíci +1

      😁😁

    • @shlok1436
      @shlok1436 Před 3 měsíci

      Ya it's really chai 😄 time with code 😄

  • @thisstory
    @thisstory Před 10 měsíci

    I was watching other tutorial in other channel which were also good that makes me bore but this is not that boring till now and hope it does
    not get boring

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

    Its amazing JS Series🎉🎉

  • @SyedAsif08
    @SyedAsif08 Před 7 měsíci

    amazing content and explanation

  • @anandkalyanji
    @anandkalyanji Před 9 měsíci +4

    outputs :
    Simple print : 2023-10-10T14:57:57.246Z
    Date to string : Tue Oct 10 2023 20:27:57 GMT+0530 (India Standard Time)
    Date to date-string : Tue Oct 10 2023
    Date to local date string : 10/10/2023
    Date to local time string : 8:27:57 pm

  • @akashdhayal4663
    @akashdhayal4663 Před 4 měsíci

    Thank you so much Hitesh sir

  • @universalbeats.....8242
    @universalbeats.....8242 Před 3 měsíci

    Thank you sir making this playlist

  • @maheh360
    @maheh360 Před rokem

    Thank you so much sir 😍❤️🙇 main bohot happy hotahu apse sikhkr🥰

  • @Instrumentation010
    @Instrumentation010 Před 8 měsíci

    Learnt many things first time which not taught by others

  • @mnojs4558
    @mnojs4558 Před 9 měsíci +6

    I have watched your Javascript series on your other channel and now watching this. Your content is truly amazing, and I love how you explain concepts from the very scratch.Thank You very much for your hard work.❤

  • @usama5619
    @usama5619 Před 9 měsíci

    Thanks for this amazing tutorial !

  • @sounaksaha1455
    @sounaksaha1455 Před rokem +2

    beautiful video as always, thank you sir

  • @alexraider8684
    @alexraider8684 Před 8 měsíci +7

    I have watched until 12th Video and JAVASCRIPT never felt so easy before :D (Now i can relate with what you said in the first video: "Knowing JS is diff. but teaching JS is whole diff. thing")

  • @kamalnathdhekwar5497
    @kamalnathdhekwar5497 Před rokem +3

    Thank you so much sir...
    But please upload videos daily

  • @AmitKumar-vh6ty
    @AmitKumar-vh6ty Před 3 dny

    Great content ❤

  • @aryangaur228
    @aryangaur228 Před 11 měsíci +1

    Thanks for this amazing tutorial sir!

  • @ali_tek
    @ali_tek Před 10 měsíci

    Great work !

  • @rohitshrivastavdotcom
    @rohitshrivastavdotcom Před 10 měsíci +3

    Such a amazing course. Thankyou for teaching us ❤, Sir there is little mistake in thumbnail (DATA TIME -> DATE TIME)

  • @tech_channel110
    @tech_channel110 Před 8 měsíci +1

    very very well explained

  • @Anil-vh1fu
    @Anil-vh1fu Před 10 měsíci +2

    2023-09-22T20:43:47.650Z
    Date printing in 'toString' method: Fri Sep 22 2023 20:43:47 GMT+0000 (Coordinated Universal Time)
    Date printing in 'toDateString' method: Fri Sep 22 2023
    Date printing in 'toISOString' method: 2023-09-22T20:43:47.650Z
    Date printing in 'toJSON' method: 2023-09-22T20:43:47.650Z
    Date printing in 'toLocaleString' method: 9/22/2023, 8:43:47 PM
    Date printing in 'toUTCString' method: Fri, 22 Sep 2023 20:43:47 GMT

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

    i would appreciate a detailed explanation i m still confused about the concept ...new sub from USA

  • @Front_endgut-tm9cf
    @Front_endgut-tm9cf Před 10 měsíci +1

    The Voice quality.🔥🔥🔥

  • @krishnavamsi1126
    @krishnavamsi1126 Před 2 měsíci

    Thank you

  • @ankushladani496
    @ankushladani496 Před rokem

    Dhanyawad guruji 🙏

  • @MyGamingEra
    @MyGamingEra Před 8 měsíci

    looking like a wow

  • @sherijatt3117
    @sherijatt3117 Před měsícem

    Hey guys, let's give a huge round of applause to Hitesh Choudhary💖 for his fantastic work on this channel. Make sure to hit subscribe to support him and get access to these awesome tutorials without spending a penny!

  • @jiteshtechbeast
    @jiteshtechbeast Před rokem +1

    This man is ❤❤❤

  • @ayush.tiwarios2105
    @ayush.tiwarios2105 Před 6 dny

    00:02 Organized content creation on CZcams is crucial.
    02:04 JavaScript's proposal for a new temporal API as a global object
    03:57 Converting date object to string and exploring various string methods in JavaScript
    06:02 Understanding the Date object in JavaScript
    08:12 Declaring and obtaining date and time values in different formats
    10:19 Understanding and calculating millisecond values and date objects in JavaScript
    12:19 Converting time units and using date methods in JavaScript.
    14:17 Understanding date and time manipulation in JavaScript
    16:22 Defining and customizing date and time properties in JavaScript.
    18:08 Undeand time in JavaScript

  • @divyanshurai6325
    @divyanshurai6325 Před rokem

    Thank you so much, sir 🙏🙏

  • @AahanSaha07
    @AahanSaha07 Před rokem +1

    Thank You sir 😊😊

  • @sagarbhavel8266
    @sagarbhavel8266 Před 7 měsíci

    Nice video

  • @ashishkumarranjan808
    @ashishkumarranjan808 Před 10 měsíci

    Great

  • @shashankkumar9547
    @shashankkumar9547 Před 10 měsíci

    Thanks Sir

  • @MyGamingEra
    @MyGamingEra Před 8 měsíci

    so good

  • @gauravgol2211
    @gauravgol2211 Před 9 měsíci

    thankyou sir

  • @adityapratapsingh5770
    @adityapratapsingh5770 Před 6 měsíci +1

    Javascript and me got something common Date is also my pain point sir ...................

  • @BABABENNETT
    @BABABENNETT Před 4 měsíci

    hitesh sir op

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

    nice

  • @fiend4955
    @fiend4955 Před rokem

    love you sir!

  • @Dev-Phantom
    @Dev-Phantom Před 6 měsíci

    cool

  • @prakhargupta4347
    @prakhargupta4347 Před rokem

    thankss 🙌

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

    thanks

  • @Sarvesh_Coder
    @Sarvesh_Coder Před rokem

    awesome !

  • @anandsingh-fc9ql
    @anandsingh-fc9ql Před rokem

    thank you❤❤❤

  • @AkshayKumar-zz6cz
    @AkshayKumar-zz6cz Před 7 měsíci

    sir thumbnail me apne Data and time likha hai 😊 ajj notice Kiya Maine 😅, but no issues main motive is to learn something

  • @rishibansal3618
    @rishibansal3618 Před 9 měsíci +2

    Time stamp : 5:20
    console.log("1 " + mydate.toString());
    console.log("2 " +mydate.toISOString());
    console.log("3 " +mydate.toJSON());
    console.log("4 " +mydate.toDateString());
    console.log("5 " +mydate.toTimeString());
    console.log("6 " +mydate.toLocaleDateString());
    console.log("7 " +mydate.toLocaleTimeString());
    console.log("8 " +mydate.toLocaleString());
    OUTPUT:-
    1 Mon Oct 02 2023 20:33:54 GMT+0530 (India Standard Time)
    2 2023-10-02T15:03:54.082Z
    3 2023-10-02T15:03:54.082Z
    4 Mon Oct 02 2023
    5 20:33:54 GMT+0530 (India Standard Time)
    6 10/2/2023
    7 8:33:54 PM
    8 10/2/2023, 8:33:54 PM

  • @hbrifat7876
    @hbrifat7876 Před 11 měsíci +2

    Date object Thu Aug 24 2023 15:04:08 GMT+0000 (Coordinated Universal Time)
    Date object with toDateString(): Thu Aug 24 2023
    Date object with toISOString(): 2023-08-24T15:04:08.236Z
    Date object with toLocaleDateString(): 8/24/2023
    Date object with toLocaleString(): 8/24/2023, 3:04:08 PM
    Date object with toLocaleTimeString(): 3:04:08 PM
    Date object with toString(): Thu Aug 24 2023 15:04:08 GMT+0000 (Coordinated Universal Time)
    Date object with toTimeString(): 15:04:08 GMT+0000 (Coordinated Universal Time)
    Date object with toUTCString(): Thu, 24 Aug 2023 15:04:08 GMT

  • @Mga-quotes
    @Mga-quotes Před 10 měsíci

    😍😍

  • @manemanoj3068
    @manemanoj3068 Před rokem +1

    bhayya maza aaagya

  • @jyotirmaysarkar8422
    @jyotirmaysarkar8422 Před 3 měsíci

    Cant we manipulate the format of dates ?
    For example
    let date = new Date();
    console.log(date.toLocaleString());
    //- Output - 4/16/2024, 7:28:22 AM
    here i want to print the date according to DD-MM-YYYY
    is it possible to do so ?

  • @addictman0724
    @addictman0724 Před rokem

    sir aap ek bar full course ki video upload kr do watching apne aap aa jayegi

  • @Apna-Program
    @Apna-Program Před 6 měsíci

    😍🥰🥰

  • @iambishwaa
    @iambishwaa Před měsícem

    done ✅

  • @sohaibahmad3290
    @sohaibahmad3290 Před 7 dny

    tum bht achy ho 😎

  • @codenoobdev
    @codenoobdev Před rokem

    sirrr g ap cheezon ko itna simple way ma explain karty hai. i just love it..... tons of love from Pakistan

  • @livecodealone
    @livecodealone Před 2 měsíci +1

    Chai aur Javascript | हिन्दी

  • @user-rl6fl9ot4g
    @user-rl6fl9ot4g Před 9 měsíci

    Earlier myDate was Local_String now she is a Global_String

  • @NiteshChaudhary07.
    @NiteshChaudhary07. Před 8 měsíci +1

    Hello Hitesh

  • @pratibhaverma2063
    @pratibhaverma2063 Před 6 měsíci +1

    At time 13:07 pe Date.now()/1000 = 1677672716.099 aur Math.floor() use krne k bad 1677672733 ? why so much difference ? Shouldn't it be 17 at last

  • @Mahin_katariya
    @Mahin_katariya Před 3 měsíci +1

    1)myDate.toDateString()
    2)myDate.toString()
    3)myDate.toLocaleDateString()
    4)myDate.toJSON()
    5)myDate.toISOString()
    results--->
    Wed Apr 03 2024
    Wed Apr 03 2024 20:40:49 GMT+0530 (India Standard Time)
    4/3/2024
    2024-04-03T15:10:49.321Z
    2024-04-03T15:10:49.321Z

  • @captain-ne8qy
    @captain-ne8qy Před 14 dny

    Sir aap pura (Node File -Name)
    Bina Baar baar likhe kaise js file run kra rhe hai??

  • @udaytewary3809
    @udaytewary3809 Před 4 měsíci

    4:44
    Watching this video just 1 year later same date ❤😅

  • @SatyaGupta.
    @SatyaGupta. Před 5 měsíci

    Hello guru ji kya aap khade hokar padha rhe hai .
    Hmko lag rha hai ki aap khade hokar padha rhe .
    Guru ji hm logo ke liye etna mehnat kr rhe hai . Guru ji
    Uske liye hm aapki 🙏🦵pair chhu pranaam karta hu ,🙏🙏🙏

  • @Dev-KD569
    @Dev-KD569 Před 10 měsíci

    console.log(Daate.toDateString());== Tue Sep 26 2023
    console.log(Daate.toISOString()); ==2023-09-26T10:21:06.642Z
    console.log(Daate.toJSON());2023-09-26T10:22:21.310Z
    console.log(Daate.toLocaleDateString()); ==9/26/2023
    console.log(Daate.toLocaleTimeString()); ==3:52:21 PM
    console.log(Daate.toUTCString()); ==Tue, 26 Sep 2023 10:22:21 GMT

  • @justtt.prerna
    @justtt.prerna Před 5 měsíci

    5:11
    toString() - Fri Feb 23 2024 17:09:31 GMT+0530 (India Standard Time)
    toDateString() - Fri Feb 23 2024
    toJSON() - 2024-02-23T11:43:04.255Z
    toLocaleDateString() - 23/02/2024
    toLocaleString() - 23/02/2024, 5:09:31 PM
    toLocaleTimeString() - 5:09:31 PM
    toTimeString() - 17:09:31 GMT+0530 (India Standard Time)
    toUTCString() - Fri, 23 Feb 2024 11:39:31 GMT

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

    Vaise to mai chai nhi peeta video dekhte time but aaj pite huye dekh rha hu😁

  • @iamwaves__TMT
    @iamwaves__TMT Před rokem

    💙💙💙

  • @techazuzu
    @techazuzu Před 7 měsíci

    toString() - Mon Dec 04 2023 04:55:19 GMT+0000 (Coordinated Universal Time)
    toUTCString() - Mon, 04 Dec 2023 04:56:58 GMT
    toISOString() - 2023-12-04T05:03:18.152Z
    toLocaleDateString() - 12/4/2023
    toLocaleTimeString() - 4:56:29 AM
    toDateString() - Mon Dec 04 2023

  • @umairkamal20
    @umairkamal20 Před 8 měsíci

    Sir what is the difference between to.JSON and to.ISOString.............

  • @jayujawaranivlogs8980
    @jayujawaranivlogs8980 Před 9 měsíci

    Hello sir Today I tried this without converting it into to string it show Fri Oct 20 2023 22:14:07 GMT+0530 (India Standard Time). How its works

  • @kailashmaurya6528
    @kailashmaurya6528 Před 8 měsíci

    Outputs of using different string methods:-
    console.log(myDate.toString()); - Sat Nov 25 2023 12:15:02 GMT+0000 (Coordinated Universal Time)
    console.log(myDate.toDateString()); - Sat Nov 25 2023
    console.log(myDate.toISOString()); - 2023-11-25T12:15:02.092Z
    console.log(myDate.toLocaleDateString()); - 11/25/2023
    console.log(myDate.toLocaleString()); - 11/25/2023, 12:15:02 PM

  • @mohdsultan2023
    @mohdsultan2023 Před rokem +2

    Done with 13th video ✔☑✅

  • @Daily_dose_motivation29

    ❤❤

  • @yadavkishan3778
    @yadavkishan3778 Před 10 měsíci

    2 date compare kar dikho sir muje aesa kahan hai thoda idea ho jaye ga sir

  • @SonamKumari-kr3io
    @SonamKumari-kr3io Před 3 měsíci

    Playlist serial wise hai?

  • @QGXN
    @QGXN Před 4 měsíci +1

    Methods With their Outputs
    Date.toDateString() Thu Mar 14 2024
    Date.toISOString() 2024-03-14T13:10:12.400Z
    Date.toJSON() 2024-03-14T13:10:12.400Z
    Date.toLocaleDateString() 3/14/2024
    Date.toLocaleString() 3/14/2024, 6:04:12PM
    Date.toLocaleTimeString() 6:04:12 PM
    Date.toString() Thu Mar 14 2024 18:40:12 GMT+0530 (India Standard Time)
    Date.toTimeString() 18:40:12 GMT+0530 (India Standard Time)
    Date.toUTCString() Thu, 14 Mar 2024 13:10:12 GMT

  • @thedevanshparashar2363

    12:34:01 GMT+0530 (India Standard Time)