fixed bug in to_formotion where date types were not converted to float when a custom options hash is passed