Inserting datetime via snippet for custom comment block


Author
Message
Charles R Hankey
Charles R Hankey
Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)Advanced StrataFrame User (922 reputation)
Group: Forum Members
Posts: 524, Visits: 30K
I would like to create a snippet to insert a custom comment block with my initials (which I want to make a task list token) and the datetime when i call the snippet

'CRH: <datetime>

' -- < my comments will go here >

I thought I was getting the hang of the snippet editor but can't seem to find the magic words to get it to insert the current date and time when it intellisenses the snippet. 

I have a macro that does it, which I dragged onto the tools menu and as a 'button' on the standard toolbar (that was an accident) and that works but I'd like to know how to have a snippet insert datetime.now or datetimenow.tolongstring() or whatever

Second part of question : for some reason today I can't create a new Task List Token.  The ADD choice is greyed out.  Thought it was working before.  Any idea what I could have done to break it?

TIA

Charles 

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search