myspacee 1 Posted March 29, 2011 hello, for job reason i need to have tommorow date in this format : ggmmaaaa (eg: 29032011) Can't obtain this, without using complicated functions about date, check end of month, etc. So i realize to obtain @mday, add 1, and 'convert' in date format, but i don't know how. Anyone can suggest me how ? thank you, m. Share this post Link to post Share on other sites
MrMitchell 16 Posted March 29, 2011 (edited) One way... #include <Date.au3> $sNewDate = _DateAdd( 'd',1, _NowCalcDate()) ConsoleWrite($sNewDate & @CRLF) $aNewDate = StringSplit($sNewDate, "/", 2) $sNewDateggmmaaaa = $aNewDate[2] & $aNewDate[1] & $aNewDate[0] ConsoleWrite($sNewDateggmmaaaa & @CRLF) Edited March 29, 2011 by MrMitchell 1 pete_wilde reacted to this Share this post Link to post Share on other sites
sahsanu 28 Posted March 29, 2011 for job reason i need to have tommorow date in this format : ggmmaaaa (eg: 29032011) Another way... #include <date.au3> $today=_DateToDayValue(@YEAR,@MON,@MDAY) Dim $Y, $M, $D $tomorrow=_DayValueToDate($today+1, $Y, $M, $D) Consolewrite("Tomorrow will be: " & $D & $M & $Y & @CRLF) Share this post Link to post Share on other sites
myspacee 1 Posted March 29, 2011 thank you MrMitchell, try now. sahsanu, try your code and end of month thank you both for reply, m. Share this post Link to post Share on other sites
inm101 0 Posted April 21, 2011 Another way... #include <date.au3> $today=_DateToDayValue(@YEAR,@MON,@MDAY) Dim $Y, $M, $D $tomorrow=_DayValueToDate($today+1, $Y, $M, $D) Consolewrite("Tomorrow will be: " & $D & $M & $Y & @CRLF) Thank you for posting this. This is just what I needed! Share this post Link to post Share on other sites