Handling of borders for single row/col data in writeData/ moved Datetime conversion to write method.