As Feherke has already pointed out the date -d option was not support in Solaris however if you check the man pages for date on the Solaris system there should be an option for capturing the day of the week in either 0-6 or 1-7 numeric format.
From there you would have to apply logic that would take the numeric and give you the string you wish so 6 or 7 would return Sunday depending on which option you went with.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.