SID-00784: How to Change Date Format in TWiki Form?
| Status: |
Answered |
TWiki version: |
4.2.4 |
Perl version: |
|
| Category: |
CategoryApplications |
Server OS: |
|
Last update: |
16 years ago |
If I used
DateFieldPlugin, I could set the date format:
The default date format is taken from the JSCalendarContrib settings. You can change the date format by setting the TWiki variable 'DATEFORMAT' in your TWikiPreferences, your WebPreferences or in a topic.
But
date is now a built-in type for TWiki forms. I don't need
DateFieldPlugin.
So, how do I set the preferred date format?
--
VickiBrown - 2010-03-16
Discussion and Answer
In
twiki/lib/LocalSite.cfg set this:
$TWiki::cfg{DefaultDateFormat} = '$year-$mo-$day';
Vicki, I invite you to get involved again with the TWiki community. Open source is about giving
and taking. I find it unfortunate that some large companies are many on the taking side.
--
PeterThoeny - 2010-03-16
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.