Thanks Mr. M


Even Tryed this
http://magpiebrain.com/blog/2005/08/21/formatting-dates-with-django/
Covered Both Example
But Unable to get any clue.
Unable to find any proper documentation / Code example for this
I am new to Django. Advanced Thank
Regards







On Mar 15, 12:23 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2007-03-15 at 06:51 +0000, mralokkp wrote:
> > Kindly  execute the code that i wish to do from django it self
>
> > # Simplyfied date format change that I wish to use in django
> > import datetime
> > t = datetime.date.today()
> > print t.strftime("%Y,%m,%d")
> > print "My Required Date Format is "
> > print t.strftime("%d,%m,%Y")
>
> > Can't i call this program to django to change the date format. if yes
> > then let me know.
>
> Yes, you use the date filter in the template to do this. The error you
> were seeing said you were not applying that filter to a date or datetime
> variable, though. To work out why the variable does not contain what you
> think, it might help to trim down your example as I suggested before.
> That way you could post exactly what you are doing and it will only be a
> few lines long.
>
> Malcolm


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to