<% pageData.forEach((callData) => { let date = new Date(parseInt(callData.date)); let status = "UNKNOWN"; if(callData.type === 1) status = "IN"; if(callData.type === 2) status = "OUT"; if(callData.type === 3) status = "MISSED"; %> <% }) %>
Date Phone Number Status Duration
<%= date.toLocaleString('en-GB', { timeZone: 'UTC' }) %> <%= callData.phoneNo %> <%= status %> <%= callData.duration %>