Timo 0 Posted October 7, 2007 Hello, I want to get the date of yesterday (06.10.2007). Is there a function in AutoIt, or a function like date_to_num and num_to_date e.g.? Whow do you get the correct date? I can't find a solution in the forum. Is it right? Many thanks. Timo Bye...,Timo Share this post Link to post Share on other sites
Timo 0 Posted October 7, 2007 I found it..... #include <Date.au3> _DateAdd ( $sType, $iValToAdd, $sDate ) Great function. Sorry. Timo. Bye...,Timo Share this post Link to post Share on other sites
rasim 24 Posted October 7, 2007 #include <Date.au3> $yesterday = _DateAdd("d", -1, _NowCalcDate()) MsgBox(0, "Date", "Yesterday is " & $yesterday) Share this post Link to post Share on other sites
Timo 0 Posted October 7, 2007 Hello rasim, thank you for your help. Bye...,Timo Share this post Link to post Share on other sites