Re: [Zope-dev] date formatting / extracting substrings

2000-09-07 Thread Paul Erickson

If you've already done some validation and can guarantee that there are
6 characters in the string, you can slice the month out of the string
like this:



or, if you just want to display the month, use this:



-Paul

Jeff Nielsen / Ugo Fast wrote:
> 
> Hello out there in Zope world!
> 
> Again, I'm completely baffled by Zope and the docs are no help either. I'm
> trying to take an input of a date in the form MM as the variable MonthID
> and create a string in the form Month,  as a variable named MonthName.
> For instance, a MonthID of 29 should return a MonthName of "September,
> 2000".
> 
> I've been looking in the docs and the emails, but I can't figure out how to
> extract substrings. I think something like this should work to seperate the
> month value from the MonthID, but it doesn't:
> 
> 
> 
> Any guidance would be appreciated.
> 
> ---
> Jeff Nielsen
> http://www.UgoFast.com/
> "Where U Go Fast"
> 

-- 
Paul Erickson   | [EMAIL PROTECTED]
Kaivo, Inc. | www.kaivo.com

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




[Zope-dev] date formatting / extracting substrings

2000-09-06 Thread Jeff Nielsen / Ugo Fast

Hello out there in Zope world!

Again, I'm completely baffled by Zope and the docs are no help either. I'm
trying to take an input of a date in the form MM as the variable MonthID
and create a string in the form Month,  as a variable named MonthName.
For instance, a MonthID of 29 should return a MonthName of "September,
2000".

I've been looking in the docs and the emails, but I can't figure out how to
extract substrings. I think something like this should work to seperate the
month value from the MonthID, but it doesn't:



Any guidance would be appreciated.

---
Jeff Nielsen
http://www.UgoFast.com/
"Where U Go Fast"


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