Plugin to insert date and time

After installing this plugin you can insert the current date or time by:

  1. Edit > Run Command…
  2. Choose the “date” or “time” commands

The date and time plugin is available (along with others) from FoldingText’s official plugin collection.

How can I change the date format for this plugin?

Now it returns the date formatted as 1/14/2018, but would love to have it formatted as 2018-01-14.

You’d need to change new Date().toLocaleTimeString() in this file to return the date in a different format:

https://github.com/FoldingText/plugins/blob/master/date%20and%20time.ftplugin/main.js