testbytest Posted October 31, 2008 Share Posted October 31, 2008 i want check date like 2008/11/30 then run dome script i know use _NowDate() to get date but how to ckeck it thanks Link to comment Share on other sites More sharing options...
testbytest Posted October 31, 2008 Author Share Posted October 31, 2008 (edited) i write script at 2008/10/31 #include <Date.au3> $sDatePart = StringSplit(_NowDate(), "/n") MsgBox(0,'',"The Date is : " & $sDatePart[1] & "/" & $sDatePart[2] & "/" & $sDatePart[3], 0) If $sDatePart[2]== 10 && $sDatePart[3] == 31 Then MsgBox(0,'',"The Date is : " & $sDatePart[2] & "/" & $sDatePart[3], 0) Exit EndIf MsgBox(0,'',"The Date is ERROR ", 0) Exit but it say "If $sDatePart[2]== 10 && $sDatePart[3] == 31 Then " is error what hapend final i find If $sDatePart[2]== 10 AND $sDatePart[3] == 31 is working Edited October 31, 2008 by testbytest Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now