{:uriI"file:///Users/ilia/my_projects/sample_filter/lib/assets/javascripts/sample_filter/script.js?type=application/javascript&pipeline=self&id=430d2f72ec541d0b33e2c800c13b3af1435b189dcff01ddc5d7cc4f0333d43f5:ET:load_pathI"A/Users/ilia/my_projects/sample_filter/lib/assets/javascripts;T: filenameI"Y/Users/ilia/my_projects/sample_filter/lib/assets/javascripts/sample_filter/script.js;T: nameI"sample_filter/script;T:logical_pathI"!sample_filter/script.self.js;T:content_typeI"application/javascript;T: sourceI"$(document).ready(function() { $('.datepicker_input').datepicker({ timepicker: true, }); $('.datepicker_input').each(function(i, el){ console.log($(el).val()); // $(el).data('datepicker').selectDate(parseFilterDate('20.02.2016 09:30')); }); }) function parseFilterDate(date_string) { var reggie = /(\d{2}).(\d{2}).(\d{4}) (\d{2}):(\d{2})/; var dateArray = reggie.exec(date_string); return new Date( (+dateArray[3]), (+dateArray[2])-1, (+dateArray[1]), (+dateArray[4]), (+dateArray[5]) ); } ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"gfile-digest:///Users/ilia/my_projects/sample_filter/lib/assets/javascripts/sample_filter/script.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%e=MqRc΀s10} b: lengthi:dependencies_digest"%q\9#}E-U%YdR-(D=u>I:idI"E430d2f72ec541d0b33e2c800c13b3af1435b189dcff01ddc5d7cc4f0333d43f5;F: mtimel+Y