Tag: javascript

jQuery Timepicker with unix epoch

The jQuery UI Timepicker is pretty cool. Adds a nice little time selector under the existing jQuery Date Picker calendar. I needed to read/write timestamps from fields like this: <input type=”text” name=”something” class=”date_time” value=”1477569840″> So I came up with this simple solution: $(‘.date_time’).each(function(){ // create a new hidden field for our epoch time storage. // copy […]