Solution from Sun abiut is only beginning. Now you must insert in html code
that you import a javascript datetime picker and activate it on all fields
with class datepicker
sum abiut schrieb am Mo., 29. Mai 2023, 23:35:
> You can use model forms and do something like this:
> 1) create your model
You can use model forms and do something like this:
1) create your model. for instance
class DatePickerModel(models.Model):
start_date = models.DateTimeField()
end_date = models.DateTimeField()
2) create your form
# setup date picker start
class DateInput(forms.DateInput):
input_type
You can also use https://github.com/monim67/django-bootstrap-datepicker-plus
It is really good and easy to integrate.
On Mon, May 29, 2023, 10:48 PM Larry Martell
wrote:
> On Mon, May 29, 2023 at 1:14 PM Thomas Mutavi
> wrote:
> >
> > Hello, how can i implement a form with several date fields
On Mon, May 29, 2023 at 1:14 PM Thomas Mutavi wrote:
>
> Hello, how can i implement a form with several date fields which have date
> and time picker in django?
You can use the jQuery UI datetimepicker.
--
You received this message because you are subscribed to the Google Groups
"Django user
4 matches
Mail list logo