Amazon Interview Question

Write the function to decide if two dates are within 30 days or more.