BOBBY328 Posted February 23, 2009 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.
dantay9 Posted February 23, 2009 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
NBJ Posted February 23, 2009 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
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