Printing Date in ABAP.

..
Here is my code:
DATA myDate TYPE DATS.
 
myDate = '20161010'.
WRITE myDate.

And the output will be like:
10.10.2016

So DATS here is a predefined Data Type in DDIC (ABAP Dictionary).

Here are some (maybe all..) pre-defined Data Types in DDIC: