Insert the Date Created in a draft

Hinthere

In the Mac app, how can I insert the Date Created of the the current draft in the body of the current draft?

Bonus would be if I could use the same action/logic on iOS too.

Thanks, Leo

Firstly, other than as noted in the cross-platform notes. most things just work on iOS and Mac - particularly anything that internal to Drafts, like manipulating text and drafts.

Second, you can start with the Insert Date example action to show how to insert text in the current draft. It takes a template, in the example case to insert the current date. If you change the template in the insert text step in this example from [[date|%B %d, %Y]] to [[created|%B %d, %Y]], it will insert the created date of the current draft.

If you want the date/time in other formats, take a look at the notes is the template guide.

Lastly, not sure what your use-case is, but, generally speaking, if you are sending the draft somewhere and want the creation date to go along, it might be better to insert it with the template for whatever export action you are using, rather than actually adding it to the content of the draft.

Hope this helps!

2 Likes

AND in addition to the template, If you have Text Expander, you
can do it in a snippet. :slight_smile:

Barry Porter

Hey, thanks for the details!

It works exactly as you say! :slight_smile:

Happy drafting,
Leo

1 Like

Is it possible to add or subtract a day when using the @draftsapp’s [date] syntax? Something similar to @TextExpander’s feature when creating snippets?

1 Like

No. See this topic for how a discussion of this and the recommended approach.

if you don’t find a topic match by searching, do consider posting new questions to new topics. It makes things easier to find when people are searching the forum as questions don’t get buried in threads on slightly different topics.

2 Likes

Thank you for your help and super fast response!