Код: Выделить всё
import java.util.Date;
import java.text.DateFormat;
class DateTime {
public static void main(String[] args) {
String dt = DateFormat.getDateTimeInstance().format(new Date());
System.out.println(dt);
}
}
3 октября 2023, 7: 01: 17? Спасибо.
Подробнее здесь: https://stackoverflow.com/questions/772 ... atnew-date