Loading video...

Video Failed to Load

Go Home

If you are reading number and date input values as strings and parsing them manually, there is a better way. More in my latest blog post:

238,257 views • 3 years ago •via X (Twitter)

10 Comments

Steve (Builder.io)'s profile picture
Steve (Builder.io)3 years ago

Note that there are a couple minor gotchas, such as that an empty number input has a value of `NaN`, whereas an empty date input has a value of `null` More detail in the full article:

beeman 🅿️'s profile picture
beeman 🅿️3 years ago

"You know there's been a better way since like IE 10". Nope, didn't know. Thanks for the tip and the subtle burn 🔥 ;)

Steve (Builder.io)'s profile picture
Steve (Builder.io)3 years ago

I was pretty surprised when I saw that this had IE 10 support myself 😅

Hassan's profile picture
Hassan3 years ago

You've been killing it with these videos, Steve! Love watching them cause I always learn something new. Keep it up!

Steve (Builder.io)'s profile picture
Steve (Builder.io)3 years ago

Thanks Hassan! I'm loving your photo restorer, beautiful site and great idea!

Miguel Saddi's profile picture
Miguel Saddi3 years ago

@GuiMoraesDev

Adrian | The Web Scraping Guy's profile picture
Adrian | The Web Scraping Guy3 years ago

Amazing

Leo Huynh 🇻🇳's profile picture
Leo Huynh 🇻🇳3 years ago

Nice tips, thanks for sharing @Steve8708 👍

Neeraj's profile picture
Neeraj3 years ago

Damn! Keep those tips coming 🔥

__main__'s profile picture
__main__3 years ago

Nice nugget!

Related Videos