basic implementation of date interval processing

Related to Issue # 1