How to search users by created date????
I want to search users by created date. I mean that i´m consulting users that was creating in dd/mm/yyyy date.
Someone knows how use the IUSearchFilter to make this ?
Why don`t You do like this:
Date date1 = new Date(); Date date2 = new Date(); IUserAccountFactory userAccFactory = UMFactory.getUserAccountFactory(); IUserAccountSearchFilter filter = userAccFactory.getUserAccountSearchFilter(); filter.setCreateBetween(date1,date2); ISearchResult result = userAccFactory.search(filter);
Now You can iterate over result, in addition You need to initialize varaibles
date1 and date2 with proper values;