-1

I want to automatically add the date and time information of that time to a certain field in the project I am doing. I am using Django, HTML, JavaScript in my project, how can I do it with any of them?

  • 3
    duplicate of [https://stackoverflow.com/questions/3429878/automatic-creation-date-for-django-model-form-objects](https://stackoverflow.com/questions/3429878/automatic-creation-date-for-django-model-form-objects) – Tim-Bolhoeve Oct 04 '22 at 11:26

1 Answers1

0

you can define in models:

created_on = models.DateTimeField(auto_now_add=True, null=True, blank=True)
Hemal Patel
  • 878
  • 6
  • 16