from datetime import datetime
import pytz


def get_date(prompt: str, timezone: str) -> datetime:
    """ Obtains a date from user input. """
    date_str = input(f'Enter date of {prompt} (yy-mm-dd hh:mm): ')
    date = datetime.strptime(date_str, "%y-%m-%d %H:%M")

    print(f'The date you entered is: {date}')

    return date.replace(tzinfo=pytz.timezone(timezone))