code: public Date getDate(String itemName) {
          try {
              return DateUtil.parseDate(getItem(itemName));
          } catch (Exception e) {
              return null;
          }
      }
docs: Returns a date item associated with the specified item name.
  
  @param itemName Item name
  @return Date value