changed date from object to static method