Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Changing Date ijn a mmddyyyy format

  • Please log in to reply
1 reply to this topic
jake smith
  • New members
  • 1 posts
  • Last active: Sep 18 2015 08:35 PM
  • Joined: 14 Sep 2015

Looking to change the current date in a script but can do it for one day but is there a way to just change the month back 6 months from the current month. Everything I try the dating get a little crazy. 


Here is what I have and must be missing something for sure. 


;Curent Date minus 6 months  
CurrentDate := A_Now 
CurrentDate =+ -180, D
FormatTime, TimeString, %CurrentDate%, mddyyyy
Send, %TimeString%


  • Members
  • 650 posts
  • Last active:
  • Joined: 12 Nov 2011

MODERATOR  can you put this in the HELP forum ?




Just a quick try:

CurrentDate := A_Now 
CurrentDate += -180, D
FormatTime, TimeString, %CurrentDate%, M-dd-yyyy

msgbox date 180 days ago = %TimeString%

winXP  and ahk unicode