code: public static String getDate(final HttpURLConnection request) {
          final String retString = request.getHeaderField("Date");
          return retString == null ? request.getHeaderField(Constants.HeaderConstants.DATE) : retString;
      }
docs: Gets the Date
  
  @param request
  The response from server.
  @return The Date.