var myEventDate = "11/08/2019"; var evd = myEventDate.substr(myEventDate.length - 4); var myTitle0 = "Welcome to Timothy's " + evd + " Fundraising Page "; jQuery("#personal_page_header h2").html(myTitle0);