I'm using the underscore.js
templating function and have done a template like this:
<span class="msg-date"><% if (typeof(sent_date) != "undefined"){ %>
<%= format(sent_date, 'd-m-Y') %><% } %>
</span>
<span class="msg-time"><% if (sent_date){ %><%= sent_date %><% } %></span>
As you can see I have add a format to sent_date
in format of d-m-Y
. But I can't get correct output.