2

is there anything like a timewidget or clock widget in Django which will help me to input data into a form for appointment date (like we have calendar or date widget).

i have my date widget working with the below code in my forms.py:

import datetime
from django.forms.extras.widgets import SelectDateWidget
mydate = forms.DateField(widget=SelectDateWidget)

is there anything like this for time widget

Malik Aqib
  • 513
  • 5
  • 21
  • 1
    have you read this: http://stackoverflow.com/questions/38601/using-django-time-date-widgets-in-custom-form ? – Павел Тявин Oct 08 '12 at 10:20
  • 1
    https://docs.djangoproject.com/en/dev/ref/forms/widgets/#splitdatetimewidget check this out. – karthikr Oct 08 '12 at 13:35
  • 1
    Karthik .. i have tried that it gives me a text box which takes time as input.But i need a widget which will help me select or pick the time, more like a clock – Malik Aqib Oct 08 '12 at 17:44

0 Answers0