StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Lua Scripts
 General Action Scripts
 How to insert current date?
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

Alex22

Ukraine
19 Posts

Posted - 09/10/2013 :  13:39:25  Show Profile  Reply with Quote
Help me with this script, please!

Rob

USA
2492 Posts

Posted - 09/10/2013 :  17:14:30  Show Profile  Visit Rob's Homepage  Reply with Quote
acSendKeys(os.date("%x"))

See here for more Lua date/time options like name of the day of week, time, etc.
Go to Top of Page

Alex22

Ukraine
19 Posts

Posted - 09/10/2013 :  18:50:46  Show Profile  Reply with Quote
Thanks!
Go to Top of Page

alexx431

2 Posts

Posted - 06/04/2018 :  16:37:07  Show Profile  Reply with Quote
thank you for this.

I am just wandering as i am in the uk and we write the date backwards so day before month. I have my computer set up to the uk locale. and when i use the microsoft word shortcut of alt + shift + d the date works fine so my locale is correct for uk.

but i am just wandering when i use strokes plus it still shows the date in the usa locale of month before day.

i am just wandering if there is any way of fixing this

thank you
Go to Top of Page

alexx431

2 Posts

Posted - 06/04/2018 :  16:44:53  Show Profile  Reply with Quote
hi i just figured it out

acSendKeys(os.date("%d/%m/%Y"))

thanks so much!
Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000