addedfunctionfordaterange