code: public static String getCurrentDate() {
          synchronized (FORMAT) {
              long now = System.currentTimeMillis();
              return FORMAT.format(new Date(now));
          }
      }
docs: Get the current date in HTTP format.
  
  @return the HTTP date.