I have the following code:
This produces the following output:
How come parseInput() returns null, and not a Date object? Am I missing something obvious?
SmartClient Version: v10.0d_2014-08-20/Pro Deployment (built 2014-08-21)
Code:
Date date = new Date(); String formattedDate = DateUtil.format(date, "yyyyMMddHHmm"); SC.logWarn("formattedDate == " + formattedDate); Date parsedDate = DateUtil.parseInput(formattedDate, "yyyyMMddHHmm"); SC.logWarn("parsedDate == " + parsedDate);
Code:
17:09:03.322:MUP9:WARN:Log:formattedDate == 201409011709 17:09:03.323:MUP9:WARN:Log:parsedDate == null
SmartClient Version: v10.0d_2014-08-20/Pro Deployment (built 2014-08-21)
Comment