<%
if(billingEndDate) {
console.log(billingEndDate.split(' ')[0]);
var nextDate = new Date(billingEndDate.split(' ')[0]);
%>
Account cancelled. Your
content will be deleted on
<%} else {
var nextDate = nextRecuringDate ? new Date(nextRecuringDate) : new Date();
%>
Automatic bill payment
Scheduled payment
<% } %>