'Convert bootstrap datepicker to datetime.datetime format

Am using bootstrap datepicker for my django application and I need the format to be as Python's datetime.datetime format: For example: 2022-02-15 19:21:38.604 +0530

But as of now the plugin has only D,M,Y etc. Any idea how to create a custom format which is similar to Python's datetime?



Sources

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

Source: Stack Overflow

Solution Source