A date is sent from another server via POST to my app in this format
date = datetime.now().strftime('%d/%m/%Y %H:%M:%S')
output: 26/08/2011 16:30:03
And must enter the default format DateTime.Now ().
This format can save, but the date is generated on another server,
then have to store in this format:
2011-08-25 22:13:32.726675-03
I tried converting a variety of ways, with strptime and strftime,
without success.
How do I convert this "date" to this default format in django? Postgre
store this timastamp in this format.
Regards!
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment