As far as I know, you cannot execute any code in a fragment, for example
DateTime.Now()
And there is no other way to do this. I learned this as I tried to do something similar to myself.
Unfortunately!
An alternative is that @AJM suggests writing a macro and assigning it a keyboard shortcut
source
share