support for length
daterange fix console.log