from datetime import datetime


def get_todays_date_obj(obj):
    """Get the date of the daily post and return the date
    in %d-%B-%Y format"""
    title = obj.title
    daily_title = title.split(' ')
    todays_date = '{}-{}-{}'.format(daily_title[4].rstrip(','),
                                    daily_title[3], daily_title[5])
    todays_date = datetime.strptime(todays_date, '%d-%B-%Y')
    return todays_date