hasDatePicker + active admin +dateFormat code example
Example: hasDatePicker + active admin
$(document).on 'focus', 'body.active_admin input.datepicker:not(.hasDatepicker)', ->
$(this).datepicker dateFormat: 'yy-mm-dd'
$(document).on 'focus', 'body.active_admin input.datepicker:not(.hasDatepicker)', ->
$(this).datepicker dateFormat: 'yy-mm-dd'