I am trying to post an entry into my Django model which has a DateTimeField
. Since i am using angular on my frontend, the date format that it posts to my Django View is of the format
Tue Jun 30 2015 00:00:00 GMT-0500 (CDT)
But Django will not allow me to post as the datetime format did not allow this format.
2015-05-23 18:48:08.543655
and it threw me this error:
[u"'Tue Jun 30 2015 00:00:00 GMT-0500 (CDT)' value has an invalid format. It must be in YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ] format."]
So what do i use to get around this issue?