# Date Type On Custom User Fields

**URL:** <https://meta.discourse.org/t/date-type-on-custom-user-fields/47357>\
**Category:** Feature\
**Tags:** completed\
**Created:** [July 15, 2016, 2:06pm UTC](https://meta.discourse.org/t/date-type-on-custom-user-fields/47357 "2016-07-15T14:06:38Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![nicolailang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nicolailang/32/159049_2.png) [@nicolailang](https://meta.discourse.org/u/nicolailang)\
**Post date:** [February 28, 2021, 12:01pm UTC](https://meta.discourse.org/t/date-type-on-custom-user-fields/47357/10 "2021-02-28T12:01:05Z")

</div>

Thanks Jeff, I realize I was not accurate enough in my reply.

We need to be able to distinguish users based on age and sort them into groups. The reason is we have a category only for people \> 15 years (seeking contact), several only for people \> 18 years (adult / sexual themed) and even one only for people \< 20 years (trusted space for the minors avoid predators & creeps).

I am in the process of migrating from a site based on Joomla (using Kunena, K2, Cobalt and JomSocial components) to a new much simpler site only based on Discourse (I’ll make a PR with my import scripts once I’m done and have had time to document them).

Currently we solve it by having groups users can join, and then have a SQL script running every 5 mins which remove and notify admin if someone joins a group they are not supposed to join.

In the current setup with Discourse I’m designing, I’ve made a JS date picker solution on their profile and for a start the current users are added to groups during the import. New users will be a manual task until I have time to write a Sidekiq job to manage that. We do seldom get more than 5 new users per week so it is manageable.

I do realize I have no way of knowing if a user is telling the truth on their age, but we have been running the community like that for 20 years now, including dealing with Danish law enforcement which did state we did the right thing.

We generally promote telling the truth, rather than restricting access, so that we may communicate with the younger at an appropriate level and be ready to protect them rather than shun them away or have them lie about their age to gain access.

Age of consent is 15 in Denmark, legal of age is 18. There is really no age limit for access to porn according to the laws. We do as a community keep hardcore subjects and sexual images for \> 18 year old to avoid all the high waved discussions 🔥 that otherwise arises every other year.

During the migration I am rewriting the rule set and I will definitely also including a clear statement that if you are \< 13 years you need to have your parents permissions to create the profile (trust me, none of our users will ever ask their parent for permission 😁)

---

_[View the full topic](https://meta.discourse.org/t/date-type-on-custom-user-fields/47357)._
