code: public static Date parseMySqlDatetimeToDate(String datetime) {
          Date date = null;
          try {
              date = JinxUtils.formatter.parse(datetime);
          } catch (Exception e) {
              // will return null
          }
          return date;
      }
docs: Convert a MySql datetime to a Java date.
  <br>
  The MySql datetime should look something like this: 2004-11-29 16:01:26
  
  @param datetime the datetime to convert to a Java date object.
  @return date represented by the datetime, or null if it is not a valid
  format.