'How to save default JavaScript datetime object in django

I want to save default JavaScript datetime format in django database. How can I change the datetime field format in django default to JavaScript format? For example: This JavaScript format: Mon Feb 06 2017 11:39:05 GMT+0000 (GMT) while django's models.DateTimeField expects: 2017-02-06 11:39 ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source