updates to decodeDetails (see description)

refactoring of decodeDetails done.
solved test case:
buy egg today from 2pm to 3pm vs
buy egg from 2pm to 3pm today

solved test case:
buy egg from 26/10/2014 2pm to today 5pm

solved test case: