НН

Size: a a a
НН
СФ
w
СФ
MK
СФ
СФ
СФ
СФ
import java.time.LocalDate;
String getCurrentDate() {
LocalDate currentDate = LocalDate.now();
int day = currentDate.getDayOfMonth();
int month = currentDate.getMonthValue();
int year = currentDate.getYear();
String result = day + "." + month + "." + year;
return result;
}
String currentDate = getCurrentDate();
vars.put("randomDate", currentDate);
СФ
w
w
СФ
import java.time.LocalDate;
public class Test {
private static String result;
public static getResult() {
return result;
}
public static void main(String []args) {
LocalDate todaydate = LocalDate.now();
int day = todaydate.getDayOfMonth();
int month = todaydate.getMonthValue();
int year = todaydate.getYear();
result = day + "." + month + "." + year;
}
}
Test.main(null);
String result = Test.getResult();
vars.put("randomdate", result);
w
СФ
СФ
w
СФ
w
w