def get_datetime_properties(self, recursive=True):
res = {}<EOL>for name, field in self.properties.items():<EOL><INDENT>if isinstance(field, DateField):<EOL><INDENT>res[name] = field<EOL><DEDENT>elif recursive and isinstance(field, ObjectField):<EOL><INDENT>for n, f in field.get_datetime_properties(recursive=recursive):<EOL><INDENT>res[name + "<STR_LIT:.>" + n] = f<EOL><DEDENT><DEDENT><DEDENT>return res<EOL>
Returns a dict of property.path and property.

:param recursive the name of the property
:returns a dict