moved date method to Utility class