You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Stephen Colebourne <sc...@btopenworld.com> on 2006/10/07 12:00:05 UTC

Re: [lang] Can I create date with jakarta commons

There is no such function at present. Feel free to add a request in JIRA.
Stephen

baranovsky@liga.net wrote:
> 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
> 
> 

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