If A is telling the truth, it is Friday, Saturday, or Sunday.

If B is telling the truth, it is Thursday, Friday, or Saturday.

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

Therefore exactly one of them is lying, and it must be Thursday.

That means A is Tweedledee and B is Tweedledum.