[phorm] [Phorm:] Re: date validation

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 25 Aug 2004 21:21:03 -0000

The following new message has been posted on Phorm Support Forum at 
<http://www.phorm.com/support/>. 

*************************************************************************** 

  MESSAGE:  (#4296) Re: date validation 
            <http://www.phorm.com/support/?rev=4296> 
  AUTHOR:   Charles 
  DATE:     August 25, 2004 at 5:21 p.m. EST 

  Reply To: (#4295) Re: date validation 
  Author:   Herb French 
  Date:     August 25, 2004 at 4:47 p.m. EST 

I'm trying to use the REGEX validation. I have pasted some regular expressions 
I pulled off the net but nothing seems to work. Here is an example: 

RULE: datefromVALID 
CRIT: REGEX 
ARGS: 
^(?=\d)(?:(?:(?:(?:(?:0?[13578]|1[02])(\/|-|\.)31)\1|(?:(?:0?[1,3-9]|1[0-2])(\/|-|\.)(?:29|30)\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})|(?:0?2(\/|-|\.)29\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))|(?:(?:0?[1-9])|(?:1[0-2]))(\/|-|\.)(?:0?[1-9]|1\d|2[0-8])\4(?:(?:1[6-9]|[2-9]\d)?\d{2}))($|\
 
(?=\d)))?(((0?[1-9]|1[012])(:[0-5]\d){0,2}(\ 
[AP]M))|([01]\d|2[0-3])(:[0-5]\d){1,2})?$ 
FFLD: datefrom 
MESG: - Date From, Date format should be MM/DD/YYYY (example 9/15/2004). 
### 

> You might consider replacing the "date" text 
> field with a "Date Picker" script of some 
> sort. 

> I utilize a javascript app called 
> "PopCalendarXP" to make the user choose a 
> date from a dropdown calender to insure that the date 
> is valid. 

*************************************************************************** 

This is an automatically-generated notice.  If you'd like to be removed from 
the mailing list, please visit Phorm Support Forum at 
<http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx  If 
you wish to respond to this message, please post your response directly to the 
board.  Thank you! 
-------------------------------------------------
You are receiving this message because you are subscribed to the Phorm mailing 
list. To send messages to the mailing list, simply send email to 
phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe 
from the list by sending email to phorm-request@xxxxxxxxxxxxx with 
'unsubscribe' in the SUBJECT field.

Other related posts: