🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18026

Re: HELP: Calendar, DateFormat class

#18026
From: Aaron Gaalswyk
Date: Fri, 21 Aug 1998 00:00
14 lines
1054 bytes
Chris Hill wrote in message <35dc4d53.313524544@forums.borland.com>...
>Use the last parameter to determine thr portion of the StringBuffer
>you are interested in.

Or,

SimpleDateFormat fmt = (SimpleDateFormat)DateFormat.getDateInstance();
fmt.applyPattern("EEEE");  // "E" means day of week; see JDK docs
String dayOfWeek = fmt.format(new Date());

Though I suppose it's not strictly *guaranteed* that you can cast to
SimpleDateFormat, the JDK docs say it usually works....

Aaron Gaalswyk
Technical Details
Message-ID: <6rj0m6$35h13@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35DBFD58.6BCC6EF3@gic-net.com> <35dc4d53.313524544@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,90391de4ef3c5f18
X-Google-Attributes: gidf74b3,public
From: "Aaron Gaalswyk" <gaalswyk@spacestar.net>
Subject: Re: HELP: Calendar, DateFormat class
Date: 1998/08/21
Message-ID: <6rj0m6$35h13@forums.borland.com>
X-Deja-AN: 383240110
References: <35DBFD58.6BCC6EF3@gic-net.com> <35dc4d53.313524544@forums.borland.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language