Date: Can you have one that is just mm/dd or mm/yyyy etc?
- From: "LibbyChantel" <LibbyChantel@xxxxxxxxx>
- Date: 25 Apr 2006 15:02:48 -0700
I need to store some data in this format: "mm/yyyy" as a Date or
DateTime. I can create SimpleDateFormat("mm/yyyy"), but when I do
format.parse() on "12/2001" it helpfully returns "December 1, 2001". I
need to store it as a DateTime of December 2001. Storing it as a String
is not an option.
Has anyone dealt with this kind of situation before and could point me
in the right direction to understand how to handle this?
Thanks,
Libby
.
- Follow-Ups:
- Re: Date: Can you have one that is just mm/dd or mm/yyyy etc?
- From: Thomas Weidenfeller
- Re: Date: Can you have one that is just mm/dd or mm/yyyy etc?
- From: Roedy Green
- Re: Can you have one that is just mm/dd or mm/yyyy etc?
- From: Rhino
- Re: Date: Can you have one that is just mm/dd or mm/yyyy etc?
- Prev by Date: Re: how to "push" updates to an installed java program?
- Next by Date: Java in Sudoku boards
- Previous by thread: to acess disk space viewer
- Next by thread: Re: Can you have one that is just mm/dd or mm/yyyy etc?
- Index(es):
Relevant Pages
|