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

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

Calendar Current_Calendar = Calendar.getInstance();

Date Current_Date = Current_Calendar.getTime();

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

Date Current_Date = new Date();


    • Madge on December 3, 2011 at 4:51 pm

    Action reuiqres knowledge, and now I can act!

      • Anton on February 13, 2012 at 4:33 pm

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

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


Leave a Reply

Your email address will not be published.