add api for date compare in PYData