How to extract the day of the year as a number from title (YYYY-MM-DD)

Thank you, I learned this works:

<% moment(tp.file.title).format("DDD")%>

(notice the three 'D’s)

1 Like