public DateTime toDateTime(Config config,Element el,String attributeName){
  String str=el.getAttribute(attributeName);
  if (str == null)   return null;
  return DateCaster.toDateAdvanced(str,ThreadLocalPageContext.getTimeZone(config),null);
}

public DateTime toDateTime ( Config config , Element el , String attributeName ) { String str = el . getAttribute ( attributeName ) ; if ( str == null ) return null ; return DateCaster . toDateAdvanced ( str , ThreadLocalPageContext . getTimeZone ( config ) , null ) ; }
reads a xml element attribute ans cast it to a datetime object
