snaker-core/src/main/java/org/snaker/engine/helper/DateHelper.java
public static String parseTime(Object date) {
		if(date == null) return null;
		if(date instanceof Date) {
			return new DateTime((Date)date).toString(DATE_FORMAT_DEFAULT);
		} else if(date instanceof String) {
			return String.valueOf(date);
		}
		return "";
	}
public static String parseTime(Object date) {
		if(date == null) return null;
		if(date instanceof Date) {
			return new DateTime((Date)date).toString(DATE_FORMAT_DEFAULT);
		} else if(date instanceof String) {
			return String.valueOf(date);
		}
		return "";
	}
public static String parseTime ( Object date ) { if ( date == null ) return null ; if ( date instanceof Date ) { return new DateTime ( ( Date ) date ) . toString ( DATE_FORMAT_DEFAULT ) ; } else if ( date instanceof String ) { return String . valueOf ( date ) ; } return "" ; }
解析日期时间对象
@param date
@return
解析日期时间对象