Hi, I have a number of user groups set up which expire after a set period of time. Is there an easy way to display to the user (when signed-in), either the date when they were assigned to a group, or even better, the time remaining before their membership expires and they are automatically removed from the group.
Thanks for any pointers you can give me!
You could use the
getGroupDateTimeEntered(object|int $user)
To get the date the user joined the group.
Then maybe the
getGroupEndDate()
https://documentation.concretecms.org/api/8.5.2/Concrete/Core/User/Group/Group.html#method_getGroupEndDate
(But not entirely sure what this returns.)
Thanks TMDesigns, I think that will work for me.
If that does work for you, you should mark @TMDesigns answer as a ‘Solution’ for future reference.