[rt-users] Help with validate code

Kenneth Crocker kfcrocker at lbl.gov
Tue May 10 17:47:19 EDT 2011


Shawn & Emmanuel,

I got it. Thanks:

(?#Date mm/dd/yyyy
hh:mm-military)^((0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[0-1])\/([1-2][0-9][0-9][0-9])
(0[1-9]|1[0-9]|2[0-4]):([0-5][0-9]))?$

Kenn
LBNL

On Tue, May 10, 2011 at 1:36 PM, Emmanuel Lacour <elacour at easter-eggs.com>wrote:

> On Tue, May 10, 2011 at 01:00:07PM -0700, Kenneth Crocker wrote:
> > To list,
> >
> > I'm trying to ensure that a date & time entry for a custom field is
> correct.
> >
>
> You may also:
>
> - use the patch [1] if you're running 3.8.x to have a "Date" type for
>  customfields
> - upgrade to 4.0.0 which has builtin date/time customfields :)
>
> [1]
>
> http://issues.bestpractical.com/Ticket/Display.html?id=8721&user=guest&pass=guest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110510/112b1f51/attachment.htm>


More information about the rt-users mailing list