commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From baranov...@liga.net
Subject Can I create date with jakarta commons
Date Fri, 06 Oct 2006 23:58:02 GMT

Good day!

I need sometimes to create concrete Date object. I have the function to do
it now:

      public static Date createDate(int year, int month, int day){
            Calendar calendar = Calendar.getInstance();

            calendar.set(year, month, day, 0, 0, 0);
            calendar.set(Calendar.MILLISECOND, 0);

            return calendar.getTime();
      }

Is there such function in commons?

Thanks!

_____________
With best regards,
Vitaly Baranovsky


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message