Re: DateTime objectFormatting

2012-05-02 Thread Terry Reedy
On 5/2/2012 10:49 AM, Nikhil Verma wrote: This was posted as html (with text copy). Please send messages to the list and newsgroup as text (only). Html sometimes does strange things, especially if you post code. -- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list

Re: DateTime objectFormatting

2012-05-02 Thread Nikhil Verma
Thanks On Wed, May 2, 2012 at 8:27 PM, Chris Rebert wrote: > On Wed, May 2, 2012 at 7:49 AM, Nikhil Verma > wrote: > > > def __unicode__(self): > > return "%s %s" % (self.name, self.date_created.strftime("%A %B > %d")) > > > > > > The user fills Gen GI in name and date along with t

Re: DateTime objectFormatting

2012-05-02 Thread Chris Rebert
On Wed, May 2, 2012 at 7:49 AM, Nikhil Verma wrote: >     def __unicode__(self): >     return "%s %s" % (self.name, self.date_created.strftime("%A %B %d")) > > > The user fills Gen GI in name and date along with time. > > What i am able to achieve with this class object to return is :- > > Ge

Re: DateTime objectFormatting

2012-05-02 Thread Jerry Hill
On Wed, May 2, 2012 at 10:49 AM, Nikhil Verma wrote: > What i am able to achieve with this class object to return is :- > > Gen GI Monday  May 7 > > I want that the this class should return object like this :- > > Gen GI Monday AM, May 7 > Pancreas Tuesday PM, May 8 Check the documentation for th