<% if (typeof profileSection !== "undefined" && profileSection) { %> <% const birthday = getBirthday(user.id); %>

Use YYYY/MM/DD or MM/DD. Year is optional.

<% if (birthday) { %>

Stored birthday: <%= formatBirthday(birthday) %>.

<% } %>
<% if (birthday) { %>
<% } %> <% } else { %> <%- include("../../../src/web/views/partials/layout-top", { title }) %>

<%= target.internal_username %>

Birthday profile

<% if (canView && birthday) { %>

Birthday: <%= formatBirthdayDateOnly(birthday) %>

<% } else { %>

This user's birthday is not visible to you.

<% } %>
<%- include("../../../src/web/views/partials/layout-bottom") %> <% } %>