Python - Retrieving last 30 days data from dataframe pandas

I've a dataframe containing six month error logs, collected every day. I want to retrieve the last 30 days records from the last date. Last date isn't today. For example: I've data for the months M...