def get_assignment_unlock_date(course, assignment):
    "Takes a course object and the name of a Canvas assignment and returns the due date. Returns None if no due date assigned.\n    \n    Example:\n    course.get_assignment_unlock_date('worksheet_01')"
    assignments = get_assignments(course)
    assignments = assignments[['name', 'unlock_at']].query('name == @assignment')
    unlock_date = assignments['unlock_at'].to_numpy()[0]
    if (unlock_date is None):
        return unlock_date
    unlock_date = unlock_date.replace('T', '-').replace(':', '-')
    return unlock_date[:16]
Takes a course object and the name of a Canvas assignment and returns the due date. Returns None if no due date assigned.

Example:
course.get_assignment_unlock_date('worksheet_01')
def get_assignment_unlock_date(course, assignment):
    "Takes a course object and the name of a Canvas assignment and returns the due date. Returns None if no due date assigned.\n    \n    Example:\n    course.get_assignment_unlock_date('worksheet_01')"
    assignments = get_assignments(course)
    assignments = assignments[['name', 'unlock_at']].query('name == @assignment')
    unlock_date = assignments['unlock_at'].to_numpy()[0]
    if (unlock_date is None):
        return unlock_date
    unlock_date = unlock_date.replace('T', '-').replace(':', '-')
    return unlock_date[:16]