add daterange init code
Merge pull request #13 from potch/master

add daterange init code