return _call(pc, object, mask, strTimezone==null?ThreadLocalPageContext.getTimeZone(pc):TimeZoneUtil.toTimeZone(strTimezone));
}
private static String _call(PageContext pc , Object object, String mask,TimeZone tz) throws PageException {
Locale locale=Locale.US;
DateTime datetime = DateCaster.toDateAdvanced(object,tz,null);
//Caster.toDate(object,true,tz,null);
if(datetime==null) {
if(StringUtil.isEmpty(object,true)) return "";
throw new CasterException(object,"datetime");
//if(!Decision.isSimpleValue(object))