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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to