Calendar Man is bestowed by Mr. Myxlplyx with a magic hat that lets him see through the other comic panels. Using this new ability, he discovers that Bruce Wayne is Batman. He tries to tell the other super villains in the Iceberg Lounge but they all dismiss this theory.
From – Batman/Superman Vol. 2 #22