While doing some MEC developments my team has encountered with a requirement where we have to send the result to an outbound as a flat file, and the name of the file should be <specificationCode>.yyyyddmmhhmmss.xml.
I found this class and methods which can cater the above file name generation requirement.
com.infor.ecutil.util.DateTimeConverter c = new DateTimeConverter();
String fileName = "MyFileName." + c.getEDIDateTime()+""+c.getEDIDateTime("TS")+".xml";
"TS" => the Format Qualifier
I've found the Format Qualifies in Phillip Kuo's web site.
I found this class and methods which can cater the above file name generation requirement.
com.infor.ecutil.util.DateTimeConverter c = new DateTimeConverter();
String fileName = "MyFileName." + c.getEDIDateTime()+""+c.getEDIDateTime("TS")+".xml";
"TS" => the Format Qualifier
I've found the Format Qualifies in Phillip Kuo's web site.
No comments :
Post a Comment