James Sintz <[EMAIL PROTECTED]> wrote:
> To: "'Andy McKay'" <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> Subject: RE: [Zope] dtml-if and dtml-with problems
> Date: Thu, 16 Nov 2000 12:54:21 -0500
> 
> Thanks!!!!
> 
> that did the trick...
> 
> <dtml-if "_.str(nl_goLiveDate) == ZopeTime().strftime('%Y/%m/%d')">
> 
> also found out that
> 
> <dtml-if "nl_goLiveDate.strftime('%Y/%m/%d') ==
> ZopeTime().strftime('%Y/%m/%d')">
> 
> works as well.

This would do a match on the dates themselves:

  <dtml-if expr="nl_goLiveDate.earliestTime() ==
ZopeTime().earliestTime()">

See $SOFTWARE_HOME/lib/python/DateTime/DateTime.py for more
fun with dates.

Tres.
-- 
===============================================================
Tres Seaver                                [EMAIL PROTECTED]
Digital Creations     "Zope Dealers"       http://www.zope.org

_______________________________________________
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 )

Reply via email to