wiki:DateFieldPlugin

Version 2 (modified by coderanger, 8 years ago) (diff)

Fix .date_empty example.

Add custom date fields to tickets

Description

This plugin allows specifying custom fields for entering dates in tickets. Just set up the field normally, then use these extra options:

fieldname.date = true
Enable extra date stuff on this field.
fieldname.date_empty = true
Allow this field to be blank.

Currently this will only validate that the given input looks like the specified date format (see below). Date range checking could be added if someone asks nicely enough.

The only configurable options are the date format and separator. Valid formats are dmy, mdy, and ymd.

Bugs/Feature Requests

Existing bugs and feature requests for DateFieldPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out DateFieldPlugin from here using Subversion, or browse the source with Trac.

Example

To enable:

[components]
datefield.* = enabled

To configure:

[datefield]
format = ymd
separator = -

Recent Changes

[14332] by rjollos on 2014-12-15 06:03:26
2.0.0dev: Restore line accidentally deleted in [14331]. Refs #12035.
[14331] by rjollos on 2014-12-15 05:59:07
2.0.0dev: Use 2-digit year format for compatibility with milestone date field. Fixes #12035.
[14330] by rjollos on 2014-12-15 01:20:10
3.0.0dev: Replace the special value <now> in the value field with the current date. Fixes #12049.

Author/Contributors

Author: coderanger
Contributors:

Attachments (4)

Download all attachments as: .zip