}
private static double toDoubleValueViaDate(String str) throws CasterException {
DateTime date = DateCaster.toDateSimple(str, false,false, null, null);// not advanced here, neo also only support simple
if(date==null)throw new CasterException("can't cast ["+str+"] string to a number value");
return date.castToDoubleValue(0);
}
private static double toDoubleValueViaDate(String str,double defaultValue) {
DateTime date = DateCaster.toDateSimple(str, false,false, null, null);// not advanced here, neo also only support simple
if(date==null)return defaultValue;