Jump to content

Recommended Posts

Posted

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

Posted

I found it.....

#include <Date.au3>

_DateAdd ( $sType, $iValToAdd, $sDate )

Great function.

Sorry.

Timo.

Bye...,Timo

Posted

#include <Date.au3>
$yesterday = _DateAdd("d", -1, _NowCalcDate())
MsgBox(0, "Date", "Yesterday is " & $yesterday)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...