code: public String dateToMWTimeStamp(Date date) {
      SimpleDateFormat mwTimeStampFormat = new SimpleDateFormat("yyyyMMddHHmmss");
      String result = mwTimeStampFormat.format(date);
      return result;
    }
docs: convert a data to a MediaWiki API timestamp
  
  @param date
  @return