Is there a way to validate the date accurately?
to determine whether she cleared it or not.
I've exhausted all my options. Despite reading through the documentation, I am unable to get it right.
Here is what I attempted:
if ('2023-03-03 12:22:16' > moment().format('DD/MM/YYYY h:mm:ss')) {
} else {
return reply('Your current subscription has not expired. Please wait for its expiration.')
}
I also tried using: isBetween, isBefore
.