Entries

Title Gen

if(not empty(prop("Dates")), if(start(prop("Dates")) != end(prop("Dates")), if(formatDate(start(prop("Dates")), "MMM") == formatDate(end(prop("Dates")), "MMM"), formatDate(start(prop("Dates")), "MMM D") + formatDate(end(prop("Dates")), " – D"), formatDate(start(prop("Dates")), "MMM D") + formatDate(end(prop("Dates")), " – MMM D")), formatDate(start(prop("Dates")), "MMM D")), "")

if(not empty(prop("Dates")),

Checks to see if a date has been entered.

if(start(prop("Dates")) != end(prop("Dates")),

If a date has been entered, check to see if the start and end dates match (either both dates are the same or only the start date has been added).

if(formatDate(start(prop("Dates")), "MMM") == formatDate(end(prop("Dates")), "MMM"),

If the start and end dates don't match, checks to see if the start date month is the same as the end date month.

formatDate(start(prop("Dates")), "MMM D") + formatDate(end(prop("Dates")), " – D"),

If it is, display the start date month once followed by the start date day and end date day.

formatDate(start(prop("Dates")), "MMM D") + formatDate(end(prop("Dates")), " – MMM D")),

If the start and end date months are different, display the start date month and day followed by the end date month and day.

formatDate(start(prop("Dates")), "MMM D")),

If the start date matches the end date, display only the start date month and day.

"")

If the date property is empty, display nothing.

<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1649d2f9-1b45-478a-86b4-341fbe27e06f/benny.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1649d2f9-1b45-478a-86b4-341fbe27e06f/benny.png" width="40px" /> By BenLatest • Was this helpful? Please consider buying me a coffee. Cheers!

</aside>