Re: [Zope] using if with date values

2000-11-16 Thread Chris Withers

"Herring, William O." wrote:
 
 I would like to insert into the this sql table the form variable birth.x.
 I would like to do it only if the date variable identification.birthdate is
 greater the that listed below.  I know the current 'if' statement is
 incorrect and probably not even close.  However, I haven't been able to find
 any documentation.  Any ideas or solutions would be appreciated.
 

I'm assuming that identification.birthdate is a field on a form...
Okay, having dots in your field names on forms will only cause you pain
;-)

Try this:

INPUT TYPE="TEXT" NAME="indentification_birthdate:date"


 !--#if expr="identification.birthdate  '08/01/2000' "--

You should probably use the new DTML syntax too ;-)

Try replacing the above line with:

dtml-if "indeficiation_birthdate  _.DateTime('01/08/2000')"

HTH,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] using if with date values

2000-11-15 Thread Herring, William O.

I would like to insert into the this sql table the form variable birth.x.
I would like to do it only if the date variable identification.birthdate is
greater the that listed below.  I know the current 'if' statement is
incorrect and probably not even close.  However, I haven't been able to find
any documentation.  Any ideas or solutions would be appreciated.

!--#if expr="identification.birthdate  '08/01/2000' "--
INSERT INTO inventory
  (x)
 VALUES ( !--#sqlvar birth.x type=string -- )
!--#/if--

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )