Date working.

Going to move all conversions to datatypes.cpp instead of splitting the support between params
and getdata.