Convert string (YYYYMMDD) format to date in Sun OS

Hi All

I need help in converting a string of YYYYMMDD format to date in Sun OS and then find out if the day is a Wednesday or not. The "date -d" option is not working and your help is much appreciated.

The date command usage from the operating system we use here is as follows:

usage:
date [-u] mmddHHMM[[cc]yy][.SS]
date [-u] [+format]
date -a [-]sss[.fff]

Thanks,
SK

Closing duplicate thread. I moved the post made here to the other thread too.

Continue here - https://www.unix.com/solaris/277630-convert-string-yyyymmdd-format-date-sun-os.html