ForumExperiment/views/partials/format_date.ejs

7 lines
333 B
Plaintext
Raw Permalink Normal View History

2023-04-13 19:21:17 +00:00
<% 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 %>