Added globalization to the Dynamics NAV replaceDateTimeInString

The existing implementation was hardcoded to use a German date format in
NAV files. The new implementation is based on the Short Date format
specified by the running thread's culture.