Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inserting the Current Date
#1
Guys,

How can I create a line which will input (type) the current date (yyyy.MM.dd) when needed?

I tried creating a string:

str sf
sf.timeformat("yyyy.MM.dd")

But how can I type the result of my string (2015.01.14)?
sf.type ?????

Moreover, how can I subtract one month?

sf.timeformat("yyyy.MM-1.dd")??


Thank you for helping.
#2
Macro Macro3
Code:
Copy      Help
sf.timeformat("{yyyy}.{MM}.{dd}")
An old blog on QM coding and automation.

The Macro Hook
#3
Macro Macro2487
Code:
Copy      Help
DateTime t.FromComputerTime
t.AddMonths(1)
str sf=t.ToStrFormat("{yyyy.MM.dd}")
key (sf)
#4
Perfect!
Thanks a lot!!!!!
#5
Thank you for this - I type that date format so many times a day that this Macro alone is worth the price of admission. Thank you - thank you - thank you!!!

Sincerely,

Gregg Holbert
#6
New to QM and Forum

Is there a macro for inserting current date and time from computer? I have documents and note pad items that I constantly have to date / time stamp.

I am using Win 8 and QM 2.4.2.2

Thanks in advance ..!
#7
Look in floating toolbar dialog "Text".
#8
Gintaras Wrote:Look in floating toolbar dialog "Text".

Monday, June 20, 2016 11:10:40 AM - Thank You ..!!! Big Grin


Forum Jump:


Users browsing this thread: 1 Guest(s)