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.