Although presently, you can't cure melasma but there are some treatment options to reduce its appearance. The time frame for results depends on the type of melasma you have. It is easier to treat superficial pigmentation than dermal pigmentation.
If you want to treat your melasma, the most important step is to determine the causes of melasma. Please bear in mind that melasma responds slowly to treatment. You need to be patient.