Forum Academy Marketplace Showcase Pricing Features

Checking if a date is within the last month

I have a list of datetimes associated with each user in my database in the form: 2021-07-26T20:57:03.987Z.

Essentially, I would like to check if the time between the current date and the latest datetime associated with the given user is less than one month. This is triggered upon the press of a button.

last dB date > current date :days -30