Added date handling in getting measurements.