JavaScript Dates in TextExpander Link

This post by the good doctor is clever. It’s not clever because he does date formatting in JavaScript.1 It’s clever because he does it by calling a second JavaScript library (Moment.js) stored as a snippet from within another snippet.

I usually do my date formatting with Python, but he’s right about the shortcoming with Python or Shell centric snippets. They don’t work everywhere. As of today, there’s a JavaScript engine on every computer I use.


  1. I’d call that the sadistic part. ↩︎