If you want to switch from your current company , so you need to do this in a official way. you can write proper resignation letter to give resign from the company. There are Resignation with Notice Period options available.
Resignation Letter with notice Period for One Month
Resignation with notice period Letter Sample