code: public static Date convertDate(JsonNode node) {
          if (node instanceof POJONode) {
              return convertDate(DPathUtils.extractValue((POJONode) node));
          }
          DateFormat df = new SimpleDateFormat();
          try {
              return node.isNumber() ? new Date(node.asLong())
                      : node.isTextual() ? df.parse(node.asText()) : null;
          } catch (ParseException e) {
              return null;
          }
      }
docs: Convert a {@link JsonNode} to {@link Date}.
  
  @param node
  @return