commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Colebourne <scolebou...@btopenworld.com>
Subject Re: [lang] Can I create date with jakarta commons
Date Sat, 07 Oct 2006 10:00:05 GMT
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


Mime
View raw message