add new functions for previous/next dmy
merge
ierge branch 'previous_next_dmy'