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