This can be determined from the episode "SpongeBob's Birthday Bash", which aired on July 14, 2009 and was stated to be SpongeBob's 18th birthday.