If it were Sunday, A would not make the statement he did.

Therefore it is not Sunday, and A is telling the truth.

One of them is lying since it isn't Sunday, so B is lying, and it is Monday.

That means A is Tweedledee and B is Tweedledum.