import datetime
import calendar


def get_weekday(date):
    """ This methods will give the weekday corresponding a specific date

    Args:
        date (str): the date in the format '%Y-%m-%d %H:%M:%S'

    Returns:
        weekday(str): A str with the name of weekday (e.g. Wednesday)

    """

    date_day = date.split(" ")
    month, day, year = (int(x) for x in date_day.split('-'))
    weekday = datetime.date(year, month, day)
    return calendar.day_name[weekday.weekday()]