In Dynamics Nav (2013)
I have a codeunit that is accessible with the soap services to run a XML
port. If I enter in the proper URI for this codeunit to run the port, the XML
data is imported OK. Also if I just run the XMLPORT.IMPORT
function from in NAV
is will properly import the XML
data file.
But if I use the SoapHttpClientProtocol
class to run the codeunit then the dates that are in the XML data are imported backwards. The months and days are switched around. I have tried copying my regional settings to the Network Service account with no luck.
Any other possible fixes or reasons on why the data-time format is different when ran through code?