AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Yesterday's date?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
EveOnline001



Joined: 23 Mar 2009
Posts: 27

PostPosted: Wed Apr 08, 2009 1:57 pm    Post subject: Yesterday's date? Reply with quote

Today's date is:

FormatTime, myTime, , yy-MM-dd

How do I get yesterday's date?
Back to top
View user's profile Send private message
Guest






PostPosted: Wed Apr 08, 2009 1:57 pm    Post subject: Reply with quote

EnvSub
Back to top
EveOnline001



Joined: 23 Mar 2009
Posts: 27

PostPosted: Wed Apr 08, 2009 1:59 pm    Post subject: Reply with quote

Thank you Smile
Back to top
View user's profile Send private message
tonne



Joined: 06 Jun 2006
Posts: 1651
Location: Denmark

PostPosted: Wed Apr 08, 2009 3:29 pm    Post subject: Reply with quote

EnvSub is used to calculate the difference between date/time, use EnvAdd as:
Code:
DateTime=
EnvAdd,DateTime,-1,Days
MsgBox %DateTime%

_________________
RegEx Powered Dynamic Hotstrings
COM
AutoHotkey 2
Back to top
View user's profile Send private message
jaco0646



Joined: 07 Oct 2006
Posts: 3113
Location: MN, USA

PostPosted: Wed Apr 08, 2009 3:36 pm    Post subject: Reply with quote

To get the previous day
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group