Hi When formating a blank date, with the code shown below it returns: 0001-01-01 in Nav2013 R2. If the same code is executed in Nav2013 it returns: ''. That must be an error in Nav2013 R2, or what? Code: Var Name DataType Subtype Length Employee2 Record Employee ApplicationManagement Codeunit ApplicationManagement txtTerminationDate Text dtDate Date txtDate Text Employee2.GET('9'); txtTerminationDate := FORMAT(Employee2."Termination Date",10,'--'); MESSAGE('Employee2."Termination Date": %1\'+ 'txtTerminationDate: %2\'+ 'ApplicationManagement.ApplicationVersion: %3', Employee2."Termination Date", txtTerminationDate, ApplicationManagement.ApplicationVersion); dtDate := 0D; txtDate := FORMAT(dtDate,10,'--'); MESSAGE('dtDate: %1\'+ 'txtDate; %2\'+ 'ApplicationManagement.ApplicationVersion: %3', dtDate, txtDate, ApplicationManagement.ApplicationVersion);
↧