on 08-24-2006 12:42 PM
hi all,
I want to display the date as
<b>Wednesday, August 23, 2006</b> format. How to get in this format?
Thanks in advance,
Gopi
Gopi,
SimpleDateFormat fmt = new SimpleDateFormat("EEEE, MMMM dd, yyyy");
System.out.println( fmt.format(new Date()) );
Valery Silaev
EPAM Systems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Gopi,
If you whant to force this format for attributes of type "date", then
- create own Simple Type in Local Dictionary based on "date" type;
- set format for this type to <b>EEEE, MMMM dd, yyyy</b>;
- change type of your attributes to this newly created type.
Valery Silaev
EPAM Systems
Due to 10 questions limit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can us a date formatter:
Format formatter = new SimpleDateFormat("EEEE, MMMM d, yyyy");
formatter.format(date);
Good luck!
Roelof
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.