News for hackers. Stuff that matters.
Re:Chrome gets date and time pickers by blauwbilgorgel on Friday November 16, 2012 @12:00PM (#4794633)
If you change your browser settings to use a different language, the date input will be localized to that language.

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:00Z
Re:Chrome gets date and time pickers by ptgloden on Friday November 16, 2012 @12:18PM (#4794728)
Dates in JavaScript can represent 10^8 days from 1/1/1970 in either direction.

For more, see: http://www.merlyn.demon.co.uk/js-datex.htm#RoND

Re:Chrome gets date and time pickers by bnr on Friday November 16, 2012 @05:45PM (#4796263)
> I'd love to have a little more control over this. Perhaps adding: > lang="fr"

No, please, don't! Leave the users in control, developers will just screw this up with country=language=locale logic.

Re:Chrome gets date and time pickers by ansgri on Friday November 16, 2012 @11:54PM (#4797251)
Then the browser localizes for you what it can and you'll get a very ugly-looking page that is almost all in e.g. French and dates in English. Seen that with some CMS which auto-localize their UI but not content, obviously.