Re: Date: Can you have one that is just mm/dd or mm/yyyy etc?
- From: Thomas Weidenfeller <nobody@xxxxxxxxxxxxxxxx>
- Date: Wed, 26 Apr 2006 08:33:45 +0200
LibbyChantel wrote:
I need to store some data in this format: "mm/yyyy" as a Date or
DateTime.
No, you don't. You need to display them as mm/yyyy. Store the date in milliseconds since the epoch, and use a display format which suppresses the day when you display the value.
/Thomas
--
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/
.
- Follow-Ups:
- Re: Date: Can you have one that is just mm/dd or mm/yyyy etc?
- From: LibbyChantel
- Re: Date: Can you have one that is just mm/dd or mm/yyyy etc?
- References:
- Date: Can you have one that is just mm/dd or mm/yyyy etc?
- From: LibbyChantel
- Date: Can you have one that is just mm/dd or mm/yyyy etc?
- Prev by Date: tabs don't work in netscape when using css
- Next by Date: Re: Storing a library in a .jar with eclipse
- Previous by thread: Re: Date: Can you have one that is just mm/dd or mm/yyyy etc?
- Next by thread: Re: Date: Can you have one that is just mm/dd or mm/yyyy etc?
- Index(es):