⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

adding datepicker



Charles A.

Charles A.
  • profile picture
  • Member

Posted 11 July 2013 - 03:15 AM

Hi, is there any way to change the field type to (time) "timepicker" or any clues on how to implement it? I want to store TIME format 00:00:00 on mySQL.- I'm using datatables theme.

 

Something like this:

http://trentrichardson.com/examples/timepicker/#slider_examples

 

[attachment=609:datepicker.png]

 

Any ideas??

 

Thanks!!


davidoster

davidoster
  • profile picture
  • Member

Posted 11 July 2013 - 08:10 AM

Hello Charles.

Just go to your phpMyAdmin or whatever tool you use to alter the database and add a new field of type time.

Then you need to inject some js to your DOM as it is shown here: 

http://trentrichardson.com/examples/timepicker/

 

 

You can use the undocumented public function set_js($js_file)

and put this file under base_url.