Skip to content

National Night Out 2022

Scroll To Top function getParameterByName(name, url) { var url = MNI.jQuery('.mn-form-dateadvance a[title="View next 60 days"]').attr('href'); name = name.replace(/[\[\]]/g, "\\$&"); var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), results = regex.exec(url); if (!results) return null; if (!results[2]) return ''; return decodeURIComponent(results[2].replace(/\+/g, " ")); } var from = getParameterByName('from'); var to = getParameterByName('to'); fromDate = new Date(from); newToDate = moment(fromDate).add(12, 'M').format('MM/DD/YYYY'); MNI.jQuery('.mn-form-dateadvance a[title="View next 60 days"]').attr('href', window.location.protocol + '//' + window.location.hostname + '/events/search?from=' + from + '&to=' + newToDate); MNI.jQuery('.mn-form-dateadvance a:last-child').attr('title', 'View next twelve months'); -->