Тэги:
#webdevsimplifiedКомментарии:
toLocaleDateString()
do the same?
Nah still moment or day js is fine one liner code
ОтветитьWow! This is incredible
ОтветитьHow to display format same as user's system ? instead of hard coding en-gb or en-us or any other. So that if you change region it changes date format automatically.
ОтветитьThanks Kyle.
Ответитьplease Kyle, create a full video on Intl.RelativeTimeFormat.
ОтветитьMoment js is the best library for managing time and date.
ОтветитьTime to skid
ОтветитьI'm from Spain and I appreciated this.🙏
ОтветитьI find this very handy, but it seems like it doesn't work as intended on iPhone Safari browser. Typically!
ОтветитьI HATE JS
Ответитьbut how do you put them TIMEZONE-CORRECT (when receiving zulu time from API) as value in to the html tag <input type="datetime-local" /> ???
Ответитьlike it!
ОтветитьUse day JS and get rid of all this hell
Ответитьcan u keep ur head still for once?
ОтветитьWhy do you make spain format sound like its american? 🤣
ОтветитьBeen looking for this for ages, thanks kyle!
ОтветитьNiiiiiice
ОтветитьShort & sweet. Thanks for sharing.
ОтветитьHi, thanks for the short, is there a way to specify a format mask like yyyy-MM-dd?
ОтветитьYet there is no way we can pass a format string we want in and get the output
Ответитьdealing with datetime is a pain . I was wrestling to get a static timezone for a restaurant's website opening hours. toLocalestring was not helping in this case.
ОтветитьHow about the timestamp code lol
Ответитьthat's actually really neat
ОтветитьDateTimeFormat and NumberFormat are blessings.
ОтветитьCan you do custom formatting as well? Like if I want "YYYY-MM-DD"?
ОтветитьKyle you need to learn Spanish bro !
Ответить🇪🇸♥️
ОтветитьQUESTION :
How to display an Islamic/Hijri Calendar Dates on JavaScript?
Make a full video on it
Ответитьits still shit
ОтветитьVery cool information!
Ответитьwill this eliminate the need for libraries like date-fns?
ОтветитьOMG this is a thing?
Ответить"Spain format" you mean rest of the world
ОтветитьIs this built in on browsers?
ОтветитьDo you by any chance track my progress? Because I find it weird that it's too much of a coincidence that I'm actually searching a lot of this regarding dates since yesterday, lmao.
ОтветитьFeels like you're a little bit sick. Get well soon Kyle! Appreciate the content!
Ответить