add new functions for previous/next dmy