variable manipulation

Coded in my script:
#!/bin/ksh

I have a variable in the format of YYYYMMDD: $latest_bus_date_yyyymmdd
I need to create a new variable in the format of MMDDYYYY: $latest_bus_date_mmddyyyy
I want to take the information from $latest_bus_date_yyyymmdd and reformat it to be stored in the new variable.

Any ideas on how to do this?

Thanks for any suggestions!

I can't exactly parse your question, but I think this is what you want:
x=20020227
y=${x#????}${x%????}
echo $y

Thank you - it worked!