created DateUpdate class to find next and previous date