Date and Time Picker Program

Date and Time Picker Program

lcoglcog Posts: 24Questions: 5Answers: 0

I have a field that I need to enter both date and time for. Right now I specify a "date" field type so the jQuery UI datepicker is used, but I would like to use datetimepicker (which is an add-on to datepicker). Is it possible to specify the Javascript program I want to run for "date" field types?

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    Hi @lcog ,

    This thread here looks like it should help, there's an accepted answer for getting that datetimepicker going.

    Hope that helps, shout back if not,

    Cheers,

    Colin

  • lcoglcog Posts: 24Questions: 5Answers: 0

    Hello Colin,

    Thank you for the help.

    My takeaway from the thread you provided was to add an "fnInitComplete" option to the Datatable allocation. In the "fnIinitComplete" option I would specify the datetimepicker ('("#field").datetimepicker ( options );'). I tried this and still get the jQueryUI Datepicker, not the jQueryUI Datetimepicker. Am I missing something?

    Thank you,

    Kelly

  • kthorngrenkthorngren Posts: 20,142Questions: 26Answers: 4,736

    To help diagnose the issue please provide a link to your page or a test case replicating the issue?
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

This discussion has been closed.