While looking around for datepicker libraries, I came across this helpful guide on how you can use native datepickers for most, if not all, required datepicker functionality. Sure, it may not be as flashy as the JS enhanced or framework alternatives, but still worth considering IMO.
5 Comments
tja@sh.itjust.works · 16 pts · 287d
Also: Firefox on desktop supports time input but does not provide a time picker. This is very confusing in the datetime input where you only see a date picker but then have to type the time manually. There is a long-standing issue open about this.
sga@piefed.social · 1 pts · 287d
tja@sh.itjust.works · 7 pts · 287d
Sure, here is a Screenshot of only the datepicker showing on the datetime input:
And this is the 12 year old bugticket about that problem: https://bugzilla.mozilla.org/show_bug.cgi?id=datetime
sga@piefed.social · 2 pts · 287d
Kissaki@programming.dev · 3 pts · 287d
On AniDB I can enter
dd.MM.yyyyoryyyy-MM-dd(text input), which I like a lot. I often prefer reading and writingyyyy-MM-dd.Some time ago I changed my Windows number format settings to show me
yyyy-MM-ddformats. Unfortunately, that broke my webbrowsers date input / datepicker. :( So I had to go back to the standard culture format (dein my case).The worst is when you work with dates and don't know what is what, or when the behavior is unexpected.
Probably everyone knows about the Excel shitshow of implicitly converted values.
In SQL Server, what do you think
0000-00-00is when converted to a date, explicitly or implicitly? Well, unfortunately,yyyyMMddis a safer format thanyyyy-MM-dd.No,
yyyy-dd-MMis not a common or valid German date format. That's usuallydd.MM.yyyy.But worst of all, it changes behavior of the date parsing between date only and date + time types.
sjpwarren@programming.dev · 1 pts · 287d
The Native inputs always seem to be lacking.
morgenman@lemmy.world · 1 pts · 285d
Custom formatting and forcing 24h time (native defaults to locale) are two things that native falls short on.. I wish we could just use native elements.