Jump to content
Sign in to follow this  
Timo

date yesterday

Recommended Posts

Timo

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

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

#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

Hello rasim,

thank you for your help.


Bye...,Timo

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.