UI datapicker, alternative date formats
Dear jQuery comunity
First of all: thanks & compliments for this marvellous piece of
software.
Then: I live in a multilingual part of the world, mostly german and
italian. German speakers usually, but not always, write dates as
dd.mm.yy, whereas dd/mm/yy is usually, bna, preferred by italian
speakers. Lazy people prefer ddmmyy, it saves two keystrokes.
Now i can set the format when instantiating the control, like in
$(document).ready(function() {
$('#job_end_plan_rngfrom').datepicker({showOn:
"button",
buttonImage: "../
javascript/jquery/themes/flora/i/calendar.gif",
buttonImageOnly:
true,
dateFormat: 'dd/mm/
yy' });
Anyway, I would like to not force the users to that format, but allow
to insert dates also as dd.mm.yy or ddmmyy. Is there a way to add
alternative formats, that are accepted (and eventually converted to
the primary format)? The former example would eventually become:
$(document).ready(function() {
$('#job_end_plan_rngfrom').datepicker({showOn:
"button",
buttonImage: "../
javascript/jquery/themes/flora/i/calendar.gif",
buttonImageOnly:
true,
dateFormat: 'dd/mm/
yy',
alternateDateFormat:
['dd.mm.yy', 'ddmmyy'] });
If something like this is not already implemented, would this be a
feature that a wider audience is interested in?
Regards
Peter Hopfgartner
R3 GIS
http://www.r3-gis.com