|
|
|
@ -67,8 +67,8 @@ class _DynamicInputScreenState extends State<DynamicInputScreen> {
|
|
|
|
|
tempVar = e.eSERVICESDV?.pIDCOLUMNNAME ?? "";
|
|
|
|
|
if (tempVar.isNotEmpty) {
|
|
|
|
|
if (!tempVar.contains("/")) {
|
|
|
|
|
DateTime date = DateFormat('yyyy-MM-dd').parse(tempVar);
|
|
|
|
|
tempVar = DateFormat('yyyy/MM/dd HH:mm:ss').format(date);
|
|
|
|
|
DateTime date = DateFormat('yyyy-MM-dd', "en_US").parse(tempVar);
|
|
|
|
|
tempVar = DateFormat('yyyy/MM/dd HH:mm:ss', "en_US").format(date);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -506,7 +506,7 @@ class _DynamicInputScreenState extends State<DynamicInputScreen> {
|
|
|
|
|
displayText = displayText.replaceAll(" 00:00:00", "");
|
|
|
|
|
}
|
|
|
|
|
if (displayText.contains("/")) {
|
|
|
|
|
displayText = DateFormat('yyyy-MM-dd').format(DateFormat("yyyy/MM/dd").parse(displayText));
|
|
|
|
|
displayText = DateFormat('yyyy-MM-dd', "en_US").format(DateFormat("yyyy/MM/dd", "en_US").parse(displayText));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return DynamicTextFieldWidget(
|
|
|
|
@ -517,7 +517,7 @@ class _DynamicInputScreenState extends State<DynamicInputScreen> {
|
|
|
|
|
onTap: () async {
|
|
|
|
|
if ((getEitDffStructureList![index].eSERVICESDV?.pVALUECOLUMNNAME != null)) {
|
|
|
|
|
if (getEitDffStructureList![index].isDefaultTypeIsCDPS) {
|
|
|
|
|
selectedDate = DateFormat("yyyy/MM/dd").parse(getEitDffStructureList![index].eSERVICESDV!.pVALUECOLUMNNAME!.replaceAll('/"', '').replaceAll(" 00:00:00", ""));
|
|
|
|
|
selectedDate = DateFormat("yyyy/MM/dd", "en_US").parse(getEitDffStructureList![index].eSERVICESDV!.pVALUECOLUMNNAME!.replaceAll('/"', '').replaceAll(" 00:00:00", ""));
|
|
|
|
|
} else {
|
|
|
|
|
selectedDate = DateTime.parse(getEitDffStructureList![index].eSERVICESDV!.pVALUECOLUMNNAME!);
|
|
|
|
|
}
|
|
|
|
@ -576,9 +576,9 @@ class _DynamicInputScreenState extends State<DynamicInputScreen> {
|
|
|
|
|
tempDate = tempDate.replaceAll("00:00:00", '').trim();
|
|
|
|
|
}
|
|
|
|
|
if (tempDate.contains("/")) {
|
|
|
|
|
selectedDate = DateFormat("yyyy/MM/dd").parse(tempDate);
|
|
|
|
|
selectedDate = DateFormat("yyyy/MM/dd", "en_US").parse(tempDate);
|
|
|
|
|
} else {
|
|
|
|
|
selectedDate = DateFormat("yyyy-MM-dd").parse(tempDate);
|
|
|
|
|
selectedDate = DateFormat("yyyy-MM-dd", "en_US").parse(tempDate);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
selectedDate = DateTime.parse(getEitDffStructureList![index].eSERVICESDV!.pVALUECOLUMNNAME!);
|
|
|
|
@ -700,7 +700,7 @@ class _DynamicInputScreenState extends State<DynamicInputScreen> {
|
|
|
|
|
displayText = displayText.replaceAll(" 00:00:00", "");
|
|
|
|
|
}
|
|
|
|
|
if (!displayText.contains("-")) {
|
|
|
|
|
displayText = DateFormat('yyyy-MM-dd').format(DateFormat("yyyy/MM/dd").parse(displayText));
|
|
|
|
|
displayText = DateFormat('yyyy-MM-dd', "en_US").format(DateFormat("yyyy/MM/dd", "en_US").parse(displayText));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return DynamicTextFieldWidget(
|
|
|
|
|