I had two diplomas with two separate degrees (BA and BS) so I just listed them as 2 separate entries, both from 2012-2016 at the same institution. This generally requires doing two senior thesis projects, at least at my undergrad.
If you only got one diploma with two majors, I'd put Major A & Major B as the poster above suggested.