How to use toISOString to get DD MMM YYY HH:MM. I tried this way..
<%= locals.user.stats.dateLastLogin.toISOString().replace("T"," ").replace("Z","") %>
output:
2016-12-13 08:08:22.929
requird output: 12 DEC 2016 08:08pm
How to use toISOString to get DD MMM YYY HH:MM. I tried this way..
<%= locals.user.stats.dateLastLogin.toISOString().replace("T"," ").replace("Z","") %>
output:
2016-12-13 08:08:22.929
requird output: 12 DEC 2016 08:08pm