edits to decodeDetails (Date)

for test case: from mon to mon
treat at from mon to next mon