[Zope] time formats

Jim Sanford jsanford@atinucleus.com
Sat, 18 Dec 1999 11:04:39 -0600


try:

<dtml-var "_.string.replace(_.DateTime(issuedate).strftime('%B %d, %Y'),' 0',' ')">
 __________________________________________________________________
 
              Jim Sanford
      .       Database/Web Engineer
     / \  /   Accelerated Technology, Inc.
    /   /     720 Oak Circle Drive East
   /  /  \    Mobile, AL 36609
  / /     \   Voice: 334-661-5770  fax: 334-661-5788
 /         \  E-Mail: jsanford@atinucleus.com
              Web: http://www.atinucleus.com
  
 Source Code, No Royalties, Any CPU...It just make sense !
 __________________________________________________________________

----- Original Message ----- 
From: Kyle Burnett <kburnett@ep.newtimes.com>
To: <zope@zope.org>
Sent: Friday, December 17, 1999 4:12 PM
Subject: [Zope] time formats


don't i feel like an idiot. i have read over the docs for date formats but
can't find a way to return a single number day.

so i have:
<dtml-var "_.DateTime(issuedate)" fmt="%B %d, %Y">

issuedate, in this case, equals 1999-12-09

and it returns:
December 09, 1999

but i want:
December 9, 1999

i know this has to be so simpe. what am i missing?

thanks,
kyle

_______________________________________________
Zope maillist  -  Zope@zope.org
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 )