Chrome gets date and time pickers
jsfiddle.net
jsfiddle.net
Without the ability to style them, this will not get widespread adoption. I am all for consistency in browser inputs, but unfortunately, that isn't what designers and clients demand. That specific look and feel of the datepicker, with those blue colors, blacks and sharp corners just isn't going to cut it for a lot of people.
I think we will eventually see full styling support for these datepickers. Until then, this is cool, but something I won't be able to use except maybe on a personal project. I know that if I slid this into a project, the first question I would get is, "Can we change the way it looks?" Maybe I just need to find less demanding clients.
Not the most familiar with it, but I believe the gist of it is to allow developers to create self-contained widgets (or at least part of its usefulness). With it, you'll also be able to access/manipulate browser elements (they'll be presented with a Shadow DOM interface just like a custom widget).
Think styling an HTML5 Video/Audio Player. Each browser may have their own interface, but they'll be built using components, and you'll have access to them using CSS/Javascript in your web page. With the Shadow DOM, you should be able to manipulate said datepicker.
edit: styling a video tag example http://blog.romanliutikov.com/coding/discover-the-dark-side-...
If its just a matter of styling, then there is a movement to make styling these sort of components as accessible as anything else on the web. Its still in spec, but you should take a look at the Shadow DOM.
Not the most familiar with it, but I believe the gist of it is to allow developers to create self-contained widgets (or at least part of its usefulness). With it, you'll also be able to access/manipulate browser elements (they'll be presented with a Shadow DOM interface just like a custom widget).
Think styling an HTML5 Video/Audio Player. Each browser may have their own interface, but they'll be built using components, and you'll have access to them using CSS/Javascript in your web page. With the Shadow DOM, you should be able to manipulate said datepicker.
edit: styling a video tag example http://blog.romanliutikov.com/coding/discover-the-dark-side-...
-----
crandles said: trying to figure out that myself. i mostly lurk, and have only ever commented a few times. not feeling very welcomed atm!
---
It's probably a false positive in an algorithm. I don't think that any human would have banned you, at least not based on what's visible in your history.
The only potentially problematic item is your first submission , the GMail April's fools joke that you posted on your very first day here. It's [dead]. What's surprising is the delay between the post and the ban...
Send a message to info@ycombinator.com, hopefully your account will be restored.
Thanks for the help.
Agreed, the Chrome datepicker has been there for some time and is atrocious. I get a point for no styling: they can be made to feel native, e.g on iOS they're good but the Chrome ones simply are not.
> Without the ability to style them, this will not get widespread adoption. I am all for consistency in browser inputs
Indeed, but I see another advantage: what this will give us is UI<->data normalization, as third party pickers will have a tendency to converge towards the standard in terms of data handling so as to act properly as fallbacks to the standardized way.
Where Canary also has a special calendar that actually displays which week # it is: http://i.imgur.com/F1HAr.png
----------------------
By the way if anyone is considering running Chrome's Beta or Developer channel, I highly suggest running Canary as well and using it as a default.
Canary, the nightly, is actually much more stable than Beta/Developer, in that when something breaks in the Developer build it also breaks in the Canary build, but Canary is fixed in a day and Developer is fixed in 1-3 weeks.
In my experience when they break something badly in Beta, they push a fix outside of the scheduled releases.
Unfortunately, localization has not been properly addressed, in my opinion, so we're not going to be able to use it. Yes, theoretically people should choose their locale in their browser settings, but most people do it on a site-by-site basis.
Out of curiosity, why? I am always frustrated with Google (and others) for using my IP address to determine my locale setting, when I clearly have indicated en_US in the headers I send down to them. But I can see why they do if a lot of people purposefully don't set their locale correctly for whatever reason.
* Consistency 1. Most sites I spend my time on have English content. Same goes for programming, keywords are English, comments end up being English, etc.
* Consistency 2. Not every program I use has a (complete) Dutch version.
* Looks. Not everyone out there seems to take into account different languages when designing. Some English things cannot be said as shortly in Dutch without sounding silly (this works both ways). So pieces of the UI will look either overcrowded or overly empty. (Or the text sounds so odd because it got artificially shortened to fit)
* Convenience 1. When looking up an explanation/details about some programs you are using, the info will almost always be in English. It is easier to use the same language to find back what you need.
* Convenience 2. When reporting problems/bugs/finding out info about it, it is easier to use the English term used to find the info I need.
Those are the main things coming to mind. It's not like I've ever had real trouble understanding English anyway, so it's not a bother to put everything in English.
Keeping all that in mind, I do like my dates/times/... like I am used to them. Weeks start on Monday, times are in 24h clock, 16 Nov instead of Nov 16, 16/11/2012 instead of 11/16/2012, ...
LANG=es_ES LC_MESSAGES=en_US
(or GUI equivalent)?
Though the date and time pickers which have been produced so far (outside of mobile phones maybe) are essentially garbage, in no small part for exactly the reason you suggest:
> Unfortunately, localization has not been properly addressed
which could even be extended to formatting in general. They also tend to look... bad. Not just "it's not a work of art" bad, but "this shit looks worse than most HTML/JS widgets created in the past 5 years and there is absolutely no hook anywhere to style them to match one's site"
I'd love to have a little more control over this. Perhaps adding:
lang="fr"
to the input element or even the <html> tag, could localize the input?The date picker runs from 01-01-0001 to 13-9-275760. Is this upper limit due to accuracy?
DateComponents.h
static inline double maximumDate()
{ return 8640000000000000.0; } // 275760-09-13T00:00ZFor more, see: http://www.merlyn.demon.co.uk/js-datex.htm#RoND
No, please, don't! Leave the users in control, developers will just screw this up with country=language=locale logic.
http://lostinthegc.wordpress.com/2012/04/17/how-to-style-the...
Does such a project exist?
However to actually use it in a neat app, it better be stylable via css and support localization(Month-Day-Year etc), otherwise we'll have to resort to a JS option most of the time, like is the case with styled selects.