Sep 30

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

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

Calendar Current_Calendar = Calendar.getInstance();

Date Current_Date = Current_Calendar.getTime();

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

Date Current_Date = new Date();


  1. Madge

    Action reuiqres knowledge, and now I can act!

    1. Anton

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

  2. kapitanssb


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>