Fixed datetime conversion

Fixed datetime to iso conversion.
Datetime tests failed with sql error, the time was converted as
20130317 21.29.01.678 instead of 20130317 21:29:01.678