public static Date toDateFromShortFormat(String date) {
    if (date == null) {
      return null;
    }

    Date parsedDate = toDateWithFormatString(date, FACEBOOK_SHORT_DATE_FORMAT);

    // Fall back to variant if initial parse fails
    if (parsedDate == null) {
      parsedDate = toDateWithFormatString(date, FACEBOOK_ALTERNATE_SHORT_DATE_FORMAT);
    }

    return parsedDate;
  }
public static Date toDateFromShortFormat ( String date ) { if ( date == null ) { return null ; } Date parsedDate = toDateWithFormatString ( date , FACEBOOK_SHORT_DATE_FORMAT ) ; if ( parsedDate == null ) { parsedDate = toDateWithFormatString ( date , FACEBOOK_ALTERNATE_SHORT_DATE_FORMAT ) ; } return parsedDate ; }
Returns a Java representation of a Facebook "short" {@code date} string.

@param date
Facebook {@code date} string.
@return Java date representation of the given Facebook "short" {@code date} string or {@code null} if {@code date}
is {@code null} or invalid.