User need to change password after 30 days

I’m still new to yii2, i’m trying to make features where every 30 days, user need to change their password, is there any way to do this in yii2?

You just need to add last changed password date in database and compare it with current date when user logs in.