+18 restriction

Hello everyone,

I’m struggling to find a way to make the maximum date in a Date/TimePicker be 18 years minor than the Current Date/time.
It is for user sign-up, so I need them to pick their birthday, but their age has to be at least 18 years, that’s why I need this functionality.

I’ll be glad if someone can help. Thanks!

1 Like

Hey :wave: @brunobrolezzi

Have you tried using this:

Current date/time (+years) -18

Would something like that work for you?

Hope that helps! :blush:

@j805 www.NoCodeMinute.com

For All Your No-Code Education Needs:

  • One-on-One Tutoring
  • eLearning Hub
  • Video Tutorials

I did, but the thing is that it subtracts only the years, meaning it doesn’t consider months or days. So it’ll take to 2003, January 1st, and not June 1st (current day that I’m replying you)

JUST GOT IT!
Captura de tela 2021-06-01 083137

1 Like

Cool. Glad you got it working. :+1: I was next going to suggest change year to:. Glad that worked for you. :blush:

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.