Does anyone know how to format timestamps based on today’s date? For posts published within the current calendar year, I want to exclude the year from being displayed. But for posts published before the current year, I want to include the year (illustrated below).
e.g. Saturday, Jan 2 10:15pm / Friday, December 31, 2016 7:05pm