On 13 jun, 15:35, Mario Gonzalez <[EMAIL PROTECTED]> wrote:
>
>  yes, I tried that too. I tried DATE_FORMAT and DATETIME_FORMAT with.
> Currently I've got this in my settings file:
> DATETIME_FORMAT = ' d-m-Y '
>
>   But the result is a ISO style too
>

arg! I wrote an ungly hack to do that :(

date, time = str( some_datetime_field ).split(' ')
date = date.split('-')
time = time.split(':')
sql_dmy = "%s-%s-%s %s:%s" % (date[2], date[1], date[0], time[0],
time[1])


>


--~--~---------~--~----~------------~-------~--~----~
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