How do you use 12vDC battery to get 220vAC?

You need a power inverter or a mechanical motor-generator.