Jump to content
Sign in to follow this  
Timo

date yesterday

Recommended Posts

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

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

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...