You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mark Galbreath <ma...@qat.com> on 2003/05/03 14:45:48 UTC
Day of Week?
I must be brain dead. Or really hung-over....or maybe it's what I get for
working on a weekend when I SHOULD be drinking....
I can't find the class/method to pass in a date in format "Jan 1, 2003" and
return the day of the week in the 1.3.1 API. Piece of cake in JavaScript,
but the relevant methods in java.util.Date() have been deprecated and I
cannot find the equivalent in java.text.DateFormat() or
java.util.Calendar().
A little help, please?
TIA,
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Day of Week?
Posted by Mark Galbreath <ma...@qat.com>.
Nevermind...I found the answer in the java.util.GregorianCalendar class.
Mark
-----Original Message-----
From: Neil Canham [mailto:neil@knowsense.co.uk]
Sent: Saturday, May 03, 2003 8:50 AM
To: Struts Users Mailing List
Subject: RE: Day of Week?
Isn't it Calendar.get(Calendar.DAY_OF_WEEK)?
Neil Canham
KnowSense Limited
-----Original Message-----
From: Mark Galbreath [mailto:mark_galbreath@qat.com]
Sent: 03 May 2003 13:46
To: struts
Subject: Day of Week?
I must be brain dead. Or really hung-over....or maybe it's what I get for
working on a weekend when I SHOULD be drinking....
I can't find the class/method to pass in a date in format "Jan 1, 2003" and
return the day of the week in the 1.3.1 API. Piece of cake in JavaScript,
but the relevant methods in java.util.Date() have been deprecated and I
cannot find the equivalent in java.text.DateFormat() or
java.util.Calendar().
A little help, please?
TIA,
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Day of Week?
Posted by Neil Canham <ne...@knowsense.co.uk>.
Isn't it Calendar.get(Calendar.DAY_OF_WEEK)?
Neil Canham
KnowSense Limited
-----Original Message-----
From: Mark Galbreath [mailto:mark_galbreath@qat.com]
Sent: 03 May 2003 13:46
To: struts
Subject: Day of Week?
I must be brain dead. Or really hung-over....or maybe it's what I get for
working on a weekend when I SHOULD be drinking....
I can't find the class/method to pass in a date in format "Jan 1, 2003" and
return the day of the week in the 1.3.1 API. Piece of cake in JavaScript,
but the relevant methods in java.util.Date() have been deprecated and I
cannot find the equivalent in java.text.DateFormat() or
java.util.Calendar().
A little help, please?
TIA,
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Day of Week?
Posted by Mark Galbreath <ma...@qat.com>.
I'm looking for something like
if( calendarDate.DAY_OF_WEEK == SATURDAY ) {}
-----Original Message-----
From: Mark Galbreath [mailto:mark_galbreath@qat.com]
Sent: Saturday, May 03, 2003 8:46 AM
To: struts
Subject: Day of Week?
I must be brain dead. Or really hung-over....or maybe it's what I get for
working on a weekend when I SHOULD be drinking....
I can't find the class/method to pass in a date in format "Jan 1, 2003" and
return the day of the week in the 1.3.1 API. Piece of cake in JavaScript,
but the relevant methods in java.util.Date() have been deprecated and I
cannot find the equivalent in java.text.DateFormat() or
java.util.Calendar().
A little help, please?
TIA,
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org