cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Configuration: Answered

British vs US date format in Forms

When entering data into a form with a "date" field, data can be entered using either the keyboard or using the mouse to activate a drop-down calendar.

If the keyboard entered date is in the format MM/DD/YYYY, clicking on the drop-down calendar brings up the correct date, and formats it appropriately.

If the date is entered in the format DD/MM/YYYY, it will only be recognised correctly if DD is greater than 12 (i.e. it does not fit the MM/DD/YYYY or US date specification).

Is it possible to default to the DD/MM/YYYY format?


Accepted Answer

You can set a default format in $Foswiki::cfg{JSCalendarContrib}{format} in lib/LocalSite.cfg. See JSCalendarContrib for further documentation.

-- OliverKrueger - 09 Oct 2009

QuestionForm edit

Subject Configuration
Extension
Version Foswiki 1.0.6
Status Answered
Topic revision: r3 - 22 Oct 2009, AndrewJones - This page was cached on 18 Sep 2018 - 01:23.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy