added get prev or next date amalan