code: public static String toMediaWikiString(Timestamp timestamp){
  		String original = timestamp.toString();
  		StringBuffer result = new StringBuffer();
  		result.append(original.substring(0,4));//year
  		result.append(original.substring(5,7));//month
  		result.append(original.substring(8,10));//date
  		result.append(original.substring(11,13));//hour
  		result.append(original.substring(14,16));//minute
  		result.append(original.substring(17,19));//second
  		return result.toString();
  	}
docs: example: 1970-01-04 18:11:40.0 to 19700104181140