Action
Insert Creation Date and Time (Last Line)
Posted by Martin Schuhmann,
Last update
about 23 hours ago
Insert Creation Date and Time (Last Line)
Insert the creation date and time into the last line of a draft.
For more information, please visit:
https://docs.getdrafts.com/docs/actions/templates/drafts-templates
Steps
-
script
// Insert Creation Date and Time (Last Line) // Created by Martin Schuhmann // Insert the creation date and time into the last line of a draft let newContent = draft.processTemplate(`[[draft]] [[created|%d %b %Y %H:%M:%S]]`) draft.content = newContent draft.update()
Options
-
After Success Nothing Notification None Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.