On Jan 2, 2011, at 3:24 PM, Carey Gagnon wrote:

> Thanks Ed...but now to take this one step further,  can I do the following
> (I really only need the 2 digit year) ?
> 
> self.DefaultValues = {"datecreated": self.getTwoDigitYear}
> 
>    def getTwoDigitYear(self):
>        now = datetime.datetime.now()
>        twodigityear = now.strftime("%y")
>        return twodigityear

        Sure, that should work. Have you tried it?


-- Ed Leafe



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to