{"id":12799801,"date":"2020-05-07T23:30:46","date_gmt":"2020-05-07T23:30:46","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/ninja-forms-date\/"},"modified":"2020-05-07T23:30:46","modified_gmt":"2020-05-07T23:30:46","slug":"ninja-forms-date","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/ninja-forms-date\/","title":{"rendered":"Ninja Forms Date"},"content":{"rendered":"<p>I started a topic about a month ago and marked it as resolved, but I still need a bit more help. I posed the below to that resolved topic, but I am not sure if it is possible to post back to my resolved topic, so I am starting a new one. Below is the sample code, that the developer had on there website, but I am unsure of which code to modify and how to modify it. I am also provided the link to the previous topic for reference.<\/p>\n<p>Previous Topic Link<br \/>\nhttps:\/\/wordpress.org\/support\/topic\/date-drop-down-field\/<\/p>\n<p>dateObject.pikaday._o.i18n = {<br \/>\npreviousMonth : \u2018Month Before\u2019,<br \/>\nnextMonth : \u2018Month After\u2019,<br \/>\nmonths : [\u2018Jan\u2019,\u2019Feb\u2019,\u2019Mar\u2019,\u2019Apr\u2019,\u2019May\u2019,\u2019Jun\u2019,\u2019Jul\u2019,\u2019Aug\u2019,\u2019Sep\u2019,\u2019Oct\u2019,\u2019Nov\u2019,\u2019Dec\u2019],<br \/>\nweekdays : [\u2018Sunday\u2019,\u2019Monday\u2019,\u2019Tuesday\u2019,\u2019Wednesday\u2019,\u2019Thursday\u2019,\u2019Friday\u2019,\u2019Saturday\u2019],<br \/>\nweekdaysShort : [\u2018Sun\u2019,\u2019Mon\u2019,\u2019Tue\u2019,\u2019Wed\u2019,\u2019Thu\u2019,\u2019Fri\u2019,\u2019Sat\u2019]<br \/>\n};<\/p>\n<p>or<\/p>\n<p>ateObject.pikaday._o.disableDayFn = function( date ) {<br \/>\nvar disabledDays = [\u201c2017-04-28\u201d, \u201c2017-04-29\u201d, \u201c2017-04-30\u201d];<\/p>\n<p>if ( _.indexOf( disabledDays, moment( date ).format( \u201cYYYY-MM-DD\u201d ) ) !== -1 ) {<br \/>\nreturn true;<\/p>\n","protected":false},"template":"","class_list":["post-12799801","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12799801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12799801\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12799801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}