BOBBY328 Posted February 23, 2009 Share Posted February 23, 2009 Hi! I'm new to autoit and need to get the short day of week (ie Mon, Tue, etc) for the previous day. Can anyone help? Thanks in advance. Link to comment Share on other sites More sharing options...
dantay9 Posted February 23, 2009 Share Posted February 23, 2009 Try this: $Day = @WDAY Switch $Day Case 1 $Short = "Sun" Case 2 $Short = "Mon" Case 3 $Short = "Tues" Case 4 $Short = "Wed" Case 5 $Short = "Thurs" Case 6 $Short = "Fri" Case 7 $Short = "Sat" EndSwitch Link to comment Share on other sites More sharing options...
NBJ Posted February 23, 2009 Share Posted February 23, 2009 Or you could try : CODE$short = YesterdayShortDayName() Func YesterdayShortDayName() Local $Days[7] = ["Sat", "Sun", "Mon", "Tue", "Wed", "Thu","Fri" ] Return $Days[@WDAY-1] EndFunc if you need it in a function Cheers 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