testbytest Posted October 31, 2008 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
testbytest Posted October 31, 2008 Author 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
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