extracted date methods out of project