code: public static String getFormattedDate(final Long lastQueryDate, final String datePattern) {
          return formatDate(lastQueryDate, null, datePattern);
      }
docs: Get formatted date with browser time zone.
  
  @param lastQueryDate
  @param datePattern
  pattern how to format the date (cp. {@code SimpleDateFormat})
  @return String formatted date