The electronic structure calculations of two-dimensional transition-metal dichalcogenides in the presence of external electric and magnetic fields.