This is what am trying to achieve
Forms.py
class MyForm(forms.ModelForm):
Recorded_datetime = forms.DateTimeField()
I want the field to have a seperate date and time input like in the case of pub_date
field in the famous poll app.
What should I call in the template to achieve that? I have tried SplitDateTimeWidget
but still cant achieve that.
What Am getting is
Help please. Thanks.
SplitDateTimeWidget
?Recorded_datetime = forms.SplitDateTimeWidget()
and I did't exactly know how to call it in template.