fixing issue where milliseconds are getting lost when converting date/time values to string