Bringing baby to the beach

How long would you wait to take your baby to the beach? My friend brought her baby to the beach and she's 2 and half months.