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

Therefore it is not Sunday, and exactly one of them is lying.

This could only happen if it were Wednesday.

That means A is Tweedledee and B is Tweedledum.