Hello everyone,
I am customizing Django admin by adding a datetime stamp to the page using JavaScript. I want to format the datetime stamp according to the format set by Django.
It is possible to get the DATETIME_FORMAT using the get_format() method in JS which is "'j M Y, P'". But, this format is not supported by the Date().strftime method.
I don't want to hard-code the formatting of the datetime string. I want the code to adapt according to the Django settings for LANGUAGE_CODE, USE_I18N, and USE_L10N settings.
TIA!
Regards,
Gagan Deep