|
|
|
@ -339,12 +339,27 @@ class _DynamicInputScreenState extends State<DynamicInputScreen> {
|
|
|
|
|
}
|
|
|
|
|
idColName = val;
|
|
|
|
|
|
|
|
|
|
// if (getEitDffStructureList![j].fORMATTYPE == "X") {
|
|
|
|
|
// idColName = Utils.formatDateDefault(idColName!);
|
|
|
|
|
// // commenting to test
|
|
|
|
|
// // DateTime date = DateFormat('yyyy-MM-dd').parse(idColName!);
|
|
|
|
|
// // idColName = DateFormat('yyyy-MM-dd HH:mm:ss').format(date);
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
if (getEitDffStructureList![j].fORMATTYPE == "X") {
|
|
|
|
|
idColName = Utils.formatDateDefault(idColName!);
|
|
|
|
|
// commenting to test
|
|
|
|
|
// DateTime date = DateFormat('yyyy-MM-dd').parse(idColName!);
|
|
|
|
|
// idColName = DateFormat('yyyy-MM-dd HH:mm:ss').format(date);
|
|
|
|
|
idColName = Utils.reverseFormatDate(idColName!);
|
|
|
|
|
if(Utils.isDate(Utils.reverseFormatDate(Utils.formatDateNew(idColName!)), "yyyy-MM-dd")){
|
|
|
|
|
|
|
|
|
|
idColName = Utils.formatStandardDate(Utils.formatStandardDate(Utils.formatDateNew(idColName!)));
|
|
|
|
|
// idColName = DateFormat('yyyy/MM/dd HH:mm:ss').format(date);
|
|
|
|
|
}else if(Utils.isDate(Utils.reverseFormatDate(idColName!), "dd-MM-yyyy")){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// // change date format on 31/05/2023
|
|
|
|
|
DateTime date = DateFormat('dd-MM-yyyy').parse(idColName!);
|
|
|
|
|
idColName = DateFormat('yyyy-MM-dd HH:mm:ss').format(date);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|