ForumExperiment/views/partials/format_date.ejs
2023-04-13 15:21:17 -04:00

7 lines
333 B
Plaintext

<% const months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; %>
<%
const date = new Date(format_date*1000);
const year = date.getFullYear();
const month = date.getMonth();
const day = date.getDate();
%><%= months[month] %> <%= `${day}` %> <%= year %>