This is the first post to my Macros category!
Here’s a neat little trick for changing the date format in your Day template. I wanted my dates to show up in YYYY.MM.DD format, so I changed <%longDate%> in my Day template to the following:
1 2 3 4 5 6 |
<% local (d = date ("<%shortDate%>")); local (month = string.padWithZeros (date.month (d), 2)); local (day = string.padWithZeros (date.day (d), 2)); return (date.year (d) + "." + month + "." + day) %> |