On Saturday 17 Jan 2009 2:13:29 pm DragonSlayre wrote: > As I'm relatively new to python and django, I'm unsure how to get the > date and time out of a DateTimeField. > > How I usually work with this sort of thing is to 'python manage.py > shell' and then import whatever class i'm interested in and then do a > dir() on the object to find out what methods and fields it has. > > My question is for the experienced programmers - if you were in my > position, how would you go about finding out how to get a date and > time out of a DateTimeField?
same way as you do - or else look at the docs. BTW, it is better to just go to the python shell to find out these things. The only difference between you and an experienced programmer is that they would have done this long ago and remember the results. -- regards KG http://lawgon.livejournal.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---