Grouping date functions and new function
changed name of function