Date
Can anyone let me know how to create a Date(..) instance which can also have AM/PM set in it.
Can anyone let me know how to create a Date(..) instance which can also have AM/PM set in it.
> Can anyone let me know how to create a Date(..)
> instance which can also have AM/PM set in it.
Date d = new Date(); // AM/PM is intrinsic
Or were you looking to parse a date? If so, look at java.text.DateFormat and java.text.SimpleDateFormat.
~
You are confusing date objects with their formatted string representations:
http://java.sun.com/javase/6/docs/api/java/text/SimpleDateFormat.html
> Editing doesn't count, you know, my brother from another mother.
You can't triple-stamp a double-stamp! You can't triple-stamp a double-stamp! Lloyd! LLOYD! You...
(Wanna hear the most annoying sound in the world?)
~