django serializer datetime field to formated code example
Example: Datetime format django rest framework
#settings.py
REST_FRAMEWORK = {
'DATETIME_FORMAT': "%m/%d/%Y %H:%M:%S",
}
#settings.py
REST_FRAMEWORK = {
'DATETIME_FORMAT': "%m/%d/%Y %H:%M:%S",
}