Loading video...
Video Failed to Load
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)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 🅿️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)3 years ago
I was pretty surprised when I saw that this had IE 10 support myself 😅

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)3 years ago
Thanks Hassan! I'm loving your photo restorer, beautiful site and great idea!

Miguel Saddi3 years ago
@GuiMoraesDev

Adrian | The Web Scraping Guy3 years ago
Amazing

Leo Huynh 🇻🇳3 years ago
Nice tips, thanks for sharing @Steve8708 👍

Neeraj3 years ago
Damn! Keep those tips coming 🔥

__main__3 years ago
Nice nugget!

