$ -> if $("#post_published_at")[0] $("#post_published_at").datepicker dateFormat: 'mm-dd-yy';