by AirMax98 · 4y ago · 0 comments
That's a good one. The next time I run into my competitors at a trade show, I'll be sure to recommend they do this.
Just, I certainly agree in this point, just leave the management of leap years to the date data type of the platform. Don't ever, not for a second (leap or not), think that += 24*60*60*1000 could be acceptable. But chances are you'd be far more aware of that wrongness while throwing together some novel date picker than anywhere else you might be tempted, where usually the peculiarities of calendar are far out of scope.
Native date pickers are limited in how you can style and customize them. As a dev, I'd always prefer a native one, but if design wants a unified look across platforms or any unusual behaviors, bespoke might be your only option.
Writing your own datepicker is 99% of the times a rookie mistake.
If I‘m hiring a front-end developer I‘m sure as hell not paying them to write custom datepickers all day.
Development is full of compromises.