Re: Date: Can you have one that is just mm/dd or mm/yyyy etc?



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/
.