Formatting Date in SAP , ABAP.

..
Here is my code:
REPORT ZTMP_TEST_INNBOUND2.
 
DATA myDate TYPE D.
 
myDate = '20160528'.
 
WRITE myDate.
 
DATA myDateFormatted(10) TYPE C.
" We need to convert from YYYYMMDD to MM-DD-YYYY
 
MOVE myDate+0(4) TO myDateFormatted+6(4).
MOVE myDate+4(2) TO myDateFormatted+0(2).
MOVE myDate+6(2) TO myDateFormatted+3(2).
myDateFormatted+2(1) = myDateFormatted+5(1) = '-'.
 
WRITE / myDateFormatted.

And the output will be:
28052016
05-28-2016