Jump to content

Recommended Posts

Posted

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
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...