grp date return and grp mem function