Are you just wanting to insert a timestamp at the current cursor location? If so, there’s an example Insert Date action which does that in the “Editing” action group which is the default row of actions below the editor.
The format used can be modified. There’s a description of how to use format strings with date tags in this template introduction article.