Date date = new Date(); String text_datum = datum.format(date);file = new File(text_datum+ "obrazek.png");