write date range method for gc