How to Format Dates with Vanilla JavaScript

How to Format Dates with Vanilla JavaScript

Coding in Public

1 год назад

6,038 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Scott Rod
Scott Rod - 03.05.2023 01:39

Have you tried this in Astro with markdown files using SSG? When it builds, it's a day off due to the whole timezone issue. When setting the timezone to UTC, it works, but I'm unsure when building this on Netlify, where the timezone may be different, this will return the right date.

Ответить
Muhammad Adnan
Muhammad Adnan - 09.11.2022 07:19

Great bro 👌

Ответить
Neon Tuts
Neon Tuts - 09.11.2022 06:17

Thanks for sharing Chris 🙏. Now no need of using packages to format dates in JavaScript. And it is easy to implement.

Ответить
Jazz Rich
Jazz Rich - 09.11.2022 05:20

Neat. Knew about this, but not the alternate calendars.

Ответить
Huy Trần Đức
Huy Trần Đức - 08.11.2022 20:04

Cool. What is your theme and font used in this vid?

Ответить
Joseph
Joseph - 08.11.2022 17:09

Datetime is such a fundamental thing in programming. For a restaurant site I made I had to make a modal that showed if they were open or not and it seemed simple at first but it was actually quite a puzzle. Things like this make it easier, so thnx! :)

Ответить
DTU SEM
DTU SEM - 08.11.2022 16:35

I think we can use narrow weekday in calendar

Ответить
DTU SEM
DTU SEM - 08.11.2022 16:28

Interesting topic.
Suggestion - You can make a series on different APIs weekly.

Ответить
Hardwired
Hardwired - 08.11.2022 16:21

<3 format dates content

Ответить
TheDeveloper
TheDeveloper - 08.11.2022 16:01

First again, pog!

Ответить