from datetime import datetime


def is_date_format_correct(date_string):
	"""
	Check if date is in format YYYY-MM-DD

	Return:
	- True if format correct
	- False if format wrong
	"""

	if len(date_string) != 10:
		return False

	try:
		date = datetime.strptime(date_string, "%Y-%m-%d")
	
	except ValueError:
		return False

	if date > datetime.now():
		return False

	return True