Как получить текущую дату в Java

Используя класс Calendar:

Calendar Current_Calendar = Calendar.getInstance();

Date Current_Date = Current_Calendar.getTime();

Используя класс Date:

Date Current_Date = new Date();


  1. Action reuiqres knowledge, and now I can act!

    1. I much prfeer informative articles like this to that high brow literature.

    • kapitanssb on September 29, 2016 at 12:35 pm
    • Reply


Leave a Reply

Your email address will not be published.