They are both polite. The second one is formal.