Localised format for dates in a calendar field of a form? - Joomla! Forum - community, help and support


i want add calendar field custom form:

http://docs.joomla.org/calendar_form_field_type

but i'd expected date format different depending on user's active language, "standard" format different europe us, example. when outputting date, joomla handles default using date_format_lc constant, comes localised each language pack, , can customise on per language basis using language overrides... there similar entering dates?

in link posted above says this:

format (optional) date format used. in format used php specify date string formats (see below). if no format argument given, '%y-%m-%d' assumed (giving dates '2008-04-16').


i've tried entering lang constant date format parameter, doesn't seem work:

code: select all

<field name="mycalendar" type="calendar" default="5-10-2008" label="select date" description="" format="date_format_lc" />


is there built-in way handling this? or i'll have add logic use 1 format or depending on user's language?

thanks in advance!






Comments

Popular posts from this blog

Warning, the Safe Path is not accessible vm3 - Joomla! Forum - community, help and support

uppercase letters in url - Joomla! Forum - community, help and support

Joomla! Update is not offering Joomla 3 - Joomla! Forum - community, help and support