Groups | Search | Server Info | Login | Register


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

Re: Converting a Date Object to a GregorianCalendar Object

From KevinSimonson <kvnsmnsn@hotmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Converting a Date Object to a GregorianCalendar Object
Date 2011-06-25 14:29 -0700
Organization http://groups.google.com
Message-ID <f68ad9a6-f586-4121-bb2f-bc22943c0dc8@q14g2000prh.googlegroups.com> (permalink)
References <c6a540ee-ff95-44b7-ab7e-61428d961a15@r33g2000prh.googlegroups.com> <iu3ami$fab$1@dont-email.me>

Show all headers | View raw


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!

Kevin Simonson

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