Extract functions: avoid creating joda objects for each row