Try converting any MM/DD/YYYY values in date fields to ISO standard before writing...
authormccreedy@NIH.GOV <mccreedy@NIH.GOV@ba61647d-9d00-f842-95cd-605cb4296b96>
Thu, 8 Mar 2018 21:40:49 +0000 (21:40 +0000)
committermccreedy@NIH.GOV <mccreedy@NIH.GOV@ba61647d-9d00-f842-95cd-605cb4296b96>
Thu, 8 Mar 2018 21:40:49 +0000 (21:40 +0000)
git-svn-id: https://citdcbmipav.cit.nih.gov/repos-pub/mipav/trunk@15407 ba61647d-9d00-f842-95cd-605cb4296b96

mipav/src/plugins/PlugInDialogFITBIR.java

index 2ded15b..24488ac 100644 (file)
@@ -3866,6 +3866,10 @@ public class PlugInDialogFITBIR extends JFrame implements ActionListener, Change
                                         e.printStackTrace();\r
                                     }\r
                                 }\r
+                            } else if (deVal.getDataElementInfo().getType() == DataType.DATE && !deVal.getValue().equals("")) {\r
+                                // try to convert any date values entered to match ISO standard\r
+                                final String dateValue = deVal.getValue();\r
+                                deVal.setValue(convertDateToISOFormat(dateValue));\r
                             }\r
                         }\r
                     }\r