implemented datetime_to_xml