Added date category and helper function