If I understand correctly the diameter will also be the longest diagonal across the square.
From Pythagoras you know that where a is the side length.
(nb: because side length must be greater than 0 I have discarded the negative root)
Now what do you know about the area of a square?