Added datatime cast to date objects in CarePlan hierachy.

is there a reason this is only done on descending direction?