Tags:
create new tag
view all tags

SID-00784: How to Change Date Format in TWiki Form?

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title How to Change Date Format in TWiki Form?
SupportCategory CategoryApplications
TWiki version 4.2.4
Server OS

Web server

Perl version

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2010-03-16 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.