implemented DateFragment.java