getting messages within two dates