kylek29 Posted October 13, 2006 Share Posted October 13, 2006 Alright, I've searched for this and couldn't find an answer anywhere. I'm new to AutoIt3 so stay with me. We run hour-reports everyday at work. The process is launch-website, type in date (form fields) twice, and click submit. I've got the simple script going to the site, tabbing to the proper form box, but I can't seem to get it to populate with the currentdate - is there a way? I need it to put the date in MM/DD/YYYY format. Any help is appreciated. Link to comment Share on other sites More sharing options...
Helge Posted October 13, 2006 Share Posted October 13, 2006 Check out the macro reference (time and date) in the helpfile : $date = @MON & "/" & @MDAY & "/" & @YEAR MsgBox(64, "", $date) Link to comment Share on other sites More sharing options...
Xenobiologist Posted October 13, 2006 Share Posted October 13, 2006 (edited) Hi, try this: #include<Date.au3> MsgBox(64, "DD/MM/YYYY", _NowDate()) Edit: Sorry missed the point that you need it with / . :"> So long, Mega Edited October 13, 2006 by th.meger Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
kylek29 Posted October 13, 2006 Author Share Posted October 13, 2006 Hi, try this: #include<Date.au3> MsgBox(64, "DD/MM/YYYY", _NowDate()) Edit: Sorry missed the point that you need it with / . :"> So long, Mega It worked fine the other way too. Thanks a bunch. I didn't see it in the helpfile. Link to comment Share on other sites More sharing options...
Xenobiologist Posted October 14, 2006 Share Posted October 14, 2006 Hi, glad that I could help. #include<Date.au3> MsgBox( 4096, "Pc Short format", StringReplace(_DateTimeFormat( _NowCalc(),2), ".", "/")) So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now