public static Date parseISO(final String str){
  QL.require(str.length() == 10 && str.charAt(4) == '-' && str.charAt(7) == '-',"invalid format");
  final int year=Integer.parseInt(str.substring(0,4));
  final int month=Integer.parseInt(str.substring(5,7));
  final int day=Integer.parseInt(str.substring(8,10));
  final Date date=new Date(day,Month.valueOf(month),year);
  return date;
}

public static Date parseISO ( final String str ) { QL . require ( str . length ( ) == 10 && str . charAt ( 4 ) == '-' && str . charAt ( 7 ) == '-' , "invalid format" ) ; final int year = Integer . parseInt ( str . substring ( 0 , 4 ) ) ; final int month = Integer . parseInt ( str . substring ( 5 , 7 ) ) ; final int day = Integer . parseInt ( str . substring ( 8 , 10 ) ) ; final Date date = new Date ( day , Month . valueOf ( month ) , year ) ; return date ; }
convert iso format strings to date . ex : 2008 - 03 - 31
