Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #5683

Re: Converting a Date Object to a GregorianCalendar Object

From Lew <noone@lewscanon.com>
Newsgroups comp.lang.java.programmer
Subject Re: Converting a Date Object to a GregorianCalendar Object
Date 2011-06-26 14:06 -0400
Organization albasani.net
Message-ID <iu7sej$ka8$3@news.albasani.net> (permalink)
References <c6a540ee-ff95-44b7-ab7e-61428d961a15@r33g2000prh.googlegroups.com> <iu3ami$fab$1@dont-email.me> <f68ad9a6-f586-4121-bb2f-bc22943c0dc8@q14g2000prh.googlegroups.com>

Show all headers | View raw


On 06/25/2011 05:29 PM, KevinSimonson wrote:
> On Jun 24, 6:43 pm, Jeff Higgins<j...@invalid.invalid>  wrote:
>> On 06/24/2011 07:54 PM, KevinSimonson wrote:
>>
>>> I can go from a GregorianCalendar object to a Date object with the
>>> method getTime().  Is there any way to go from a Date object to a
>>> GregorianCalendar object?
>>
>> Calender.setTime(Date date)?
>
> Thanks!  This worked just fine!

Learn to use the API docs.
<http://download.oracle.com/javase/6/docs/api/java/util/Calendar.html>

-- 
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Converting a Date Object to a GregorianCalendar Object KevinSimonson <kvnsmnsn@hotmail.com> - 2011-06-24 16:54 -0700
  Re: Converting a Date Object to a GregorianCalendar Object Jeff Higgins <jeff@invalid.invalid> - 2011-06-24 20:43 -0400
    Re: Converting a Date Object to a GregorianCalendar Object KevinSimonson <kvnsmnsn@hotmail.com> - 2011-06-25 14:29 -0700
      Re: Converting a Date Object to a GregorianCalendar Object Lew <noone@lewscanon.com> - 2011-06-26 14:06 -0400
  Re: Converting a Date Object to a GregorianCalendar Object Roedy Green <see_website@mindprod.com.invalid> - 2011-06-24 18:35 -0700
    Re: Converting a Date Object to a GregorianCalendar Object Dr J R Stockton <reply1126@merlyn.demon.co.uk> - 2011-06-27 21:36 +0100
      Re: Converting a Date Object to a GregorianCalendar Object Lew <noone@lewscanon.com> - 2011-06-27 19:38 -0400

csiph-web