Working with JavaScript dates? Yeah, just use date-fns...

Поделиться
HTML-код
  • Опубликовано: 19 окт 2024
  • Working with JavaScript dates is kind of a mess, but you can make it easy with date-fns. It's a library with a bunch of helper functions from adding and subtracting dates and hours to formatting timestamps in any language you need. Stop using Moment.js and clogging up your projects with a bunch of unused code when you can just use date-fns instead...

Комментарии • 28

  • @ingvoo
    @ingvoo 2 года назад +1

    Very nice video Eric, so nice to get the high level overview of the library in less 8 minutes with you 👍

  • @pinholeopinho
    @pinholeopinho 2 месяца назад

    Nice! Straight to the point. Thank you, Eric.

  • @richardmelkonian5681
    @richardmelkonian5681 3 года назад +1

    exactly what I needed! thanks fo making this

  • @yuiyukinoshita6604
    @yuiyukinoshita6604 2 года назад

    Just what I was looking for tysm!! Now I can do the challenge I found a month ago lol

  • @Ayoubased
    @Ayoubased Месяц назад

    what is that calculation next to your imports?
    Im still confused on how imports work and how is it better to import something more specific.
    I want to work with d3 and I know its big and wonderingg howm uch each import will take me, or should I use a simpler chart library for a simple chart

  • @mdshahbazali1846
    @mdshahbazali1846 2 года назад

    Love ur high quality videos

  • @mandihaase2744
    @mandihaase2744 3 года назад

    Very helpful video - thank you!

  • @cesarmuzio1154
    @cesarmuzio1154 3 года назад

    Cool, thanks for sharing bud!

  • @hewramanwaran6444
    @hewramanwaran6444 2 года назад

    Thanks a lot. It was really helpful.

  • @muhammademirsyah8037
    @muhammademirsyah8037 2 года назад

    Thanks for the video!

  • @SANDEEP_SINGH_2607
    @SANDEEP_SINGH_2607 2 года назад

    great work bro

  • @fthdev1
    @fthdev1 2 года назад

    Thanks for the video.

  • @toppmoviehighlights
    @toppmoviehighlights Год назад

    This is helpful. Thanks

  • @RD-jr8nv
    @RD-jr8nv 3 года назад

    I cannot get the day of week like "Monday, Tuesday..." to work, keeps giving me the index of the date. Anyone know how to do this?

  • @mishenthakshana3407
    @mishenthakshana3407 2 года назад

    Thankyou Eric bro ❤, Can I know how to display like this '2 minutes ago' like that live updating without page refresh really struggling with this

    • @EricMurphyxyz
      @EricMurphyxyz  2 года назад

      Not sure, but I assume you would use something like setInterval and reformat the date every minute or so

  • @sebs178
    @sebs178 7 месяцев назад

    awesome vid

  • @shdlip8935
    @shdlip8935 Месяц назад

    Thanks Mate

  • @Usman-bhai5411
    @Usman-bhai5411 3 года назад

    how to get all dates between to and from date using fns?

  • @moshemo613
    @moshemo613 3 года назад

    What extension are you using that shows the size of your imported packages?

    • @EricMurphyxyz
      @EricMurphyxyz  3 года назад +3

      Import cost

    • @ajbadenhorst
      @ajbadenhorst 3 года назад

      @@EricMurphyxyz Very cool package, only found out about this now. Thanks for the video!

  • @kmacdee
    @kmacdee 3 года назад

    Thank you!

  • @abderehmen783
    @abderehmen783 2 года назад

    great library / thank you for your content / please include your twitter and /or your github account to view more of your code

  • @tatumtots6704
    @tatumtots6704 3 года назад +1

    fix 'JavaScript' in your title to help the search algorithm!

    • @EricMurphyxyz
      @EricMurphyxyz  3 года назад

      Wow, cannot believe I overlooked that lol, thanks!

  • @sm3dev
    @sm3dev 2 года назад

    Thanks for this!