Added dates functionality to user history