Date and Time Picker Program

Date and Time Picker Program

lcoglcog Posts: 22Questions: 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: 3,991Questions: 0Answers: 709

    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: 22Questions: 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: 5,100Questions: 19Answers: 1,128

    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

Sign In or Register to comment.