locale specific date format

2003-11-21 Thread Nathan Coast
Hi How do I set locale specific date formats? I tried setting org.apache.struts.taglib.bean.format.date with format strings within locale specific applicationResources.properties but the format keeps coming out the same Fri Nov 21 16:46:05 CST 2003 any ideas? cheers Nathan

Re: locale specific date format

2003-11-21 Thread Rick Reumann
Nathan Coast wrote: How do I set locale specific date formats? I tried setting org.apache.struts.taglib.bean.format.date with format strings within locale specific applicationResources.properties but the format keeps coming out the same Fri Nov 21 16:46:05 CST 2003 any ideas? For displaying

Re: locale specific date format

2003-11-21 Thread Kris Schneider
Schneeder? Hm, sounds familiar, but... Anyway, forgetting JSTL for a second (gasp!), you're saying you've got something like: ApplicationResources_en.properties: dateFormat=... ApplicationResources_fr.properties: dateFormat=... Yes? If so, then maybe this is what you're looking for: bean:write

Re: locale specific date format

2003-11-21 Thread Rick Reumann
Kris Schneider wrote: Schneeder? Hm, sounds familiar, he he sorry about that Kris:) Just don't beat me... you were sort of a bad ass as the superintendent on One Day At A Time.:) -- Rick - To unsubscribe, e-mail: [EMAIL

Re: locale specific date format

2003-11-21 Thread Kris Schneider
Yipes, that's dated... Quoting Rick Reumann [EMAIL PROTECTED]: Kris Schneider wrote: Schneeder? Hm, sounds familiar, he he sorry about that Kris:) Just don't beat me... you were sort of a bad ass as the superintendent on One Day At A Time.:) -- Rick -- Kris Schneider

Date format

2003-08-01 Thread Silverio Wagner Silva(Secorp)
A beginner question: When my date field is shown in my jsp it appears in a different way, although my Locale object is correctly set. Anyone knows how to solve this problem? Thanks. - To unsubscribe, e-mail: [EMAIL

RE: Date format

2003-08-01 Thread Tamia Ramírez
with type is your date, java.sql or java.util? -Original Message- From: Silverio Wagner Silva(Secorp) [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 10:27 AM To: 'Struts Users Mailing List' Subject: Date format A beginner question: When my date field is shown in my jsp

RES: Date format

2003-08-01 Thread Silverio Wagner Silva(Secorp)
java.util.Date -Mensagem original- De: Tamia Ramírez [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 1 de agosto de 2003 13:33 Para: Struts Users Mailing List Assunto: RE: Date format with type is your date, java.sql or java.util? -Original Message- From: Silverio Wagner

RE: Date format

2003-08-01 Thread Tamia Ramírez
help to you too... it works for me. -Original Message- From: Silverio Wagner Silva(Secorp) [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 10:33 AM To: 'Struts Users Mailing List' Subject: RES: Date format java.util.Date -Mensagem original- De: Tamia Ramírez [mailto:[EMAIL

RE: Date format

2003-08-01 Thread Daniel H. F. e Silva
need to import java.text first. I hope it can help to you too... it works for me. -Original Message- From: Silverio Wagner Silva(Secorp) [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 10:33 AM To: 'Struts Users Mailing List' Subject: RES: Date format java.util.Date

RE: date format problems

2003-03-07 Thread apachep2
Never try to store a date as a string. It creates a lot of date format problems. As I have said, store it as a long so that you can easily do the conversion. -Original Message- From: Søren Blidorf [mailto:[EMAIL PROTECTED] Sent: March 6, 2003 6:42 PM To: 'Struts Users Mailing List

SV: date format problems

2003-03-07 Thread Søren Blidorf
Yes, it's a good point, but the only place my date is a String, is in the ActionForm. Would you store the date as long there? -Oprindelig meddelelse- Fra: apachep2 [mailto:[EMAIL PROTECTED] Sendt: 7. marts 2003 15:22 Til: 'Struts Users Mailing List' Emne: RE: date format problems Never

Re: SV: date format problems

2003-03-07 Thread Rick Reumann
On Fri, 7 Mar 2003 15:26:49 +0100 Søren Blidorf [EMAIL PROTECTED] wrote: Yes, it's a good point, but the only place my date is a String, is in the ActionForm. Would you store the date as long there? With all due respect to apachep2 I would store myDate as a String in an ActionForm bean and

date format problems

2003-03-06 Thread Søren Blidorf
Hi. I have an action that gets a date from the MS SQL 2000 in -MM-dd. I convert it with simpledateformat as dd-MM- and put it in a jsp form. When submitting the form the date must be coverted back to -MM-DD before another actions update the db. I am trying to convert the date value

Re: date format problems

2003-03-06 Thread Gemes Tibor
2003. március 6. 16:06 dátummal Søren Blidorf ezt írtad: Hi. I have an action that gets a date from the MS SQL 2000 in -MM-dd. I convert it with simpledateformat as dd-MM- and put it in a jsp form. When submitting the form the date must be coverted back to -MM-DD before another

RE: date format problems

2003-03-06 Thread Kandi Potter
: Thursday, March 06, 2003 10:07 AM To: [EMAIL PROTECTED] Subject: date format problems Hi. I have an action that gets a date from the MS SQL 2000 in -MM-dd. I convert it with simpledateformat as dd-MM- and put it in a jsp form. When submitting the form the date must be coverted back to

RE: date format problems

2003-03-06 Thread Chen, Gin
give more details? -Tim -Original Message- From: Kandi Potter [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 10:21 AM To: Struts Users Mailing List Subject: RE: date format problems I'm no expert at struts but I convert and validate my dates in my Action or Business Class

RE: date format problems

2003-03-06 Thread apachep2
Make sure it is a java.sql.Date during conversion using ConvertUtil. -Original Message- From: Gemes Tibor [mailto:[EMAIL PROTECTED] Sent: March 6, 2003 10:14 AM To: Struts Users Mailing List Subject: Re: date format problems 2003. március 6. 16:06 dátummal Søren Blidorf ezt írtad: Hi

RE: date format problems

2003-03-06 Thread apachep2
Users Mailing List Subject: RE: date format problems I'm no expert at struts but I convert and validate my dates in my Action or Business Class instead of the Form. I could be completely off-base here in my interpretation of the struts ActionForm though -Original Message- From

Re: date format problems

2003-03-06 Thread Rick Reumann
On Thu, 6 Mar 2003 16:14:26 +0100 Gemes Tibor [EMAIL PROTECTED] wrote: 2003. március 6. 16:06 dátummal Søren Blidorf ezt írtad: Hi. I have an action that gets a date from the MS SQL 2000 in -MM-dd. I convert it with simpledateformat as dd-MM- and put it in a jsp form. When

Re: date format problems

2003-03-06 Thread Rick Reumann
On Thu, 6 Mar 2003 10:39:08 -0500 apachep2 [EMAIL PROTECTED] wrote: You are not alone. Re the original posting, I have another thought. 1. Date can be displayed using format string. 2. Date can be saved as long. Will that reduce your conversion? I think he wants to use

SV: date format problems

2003-03-06 Thread Søren Blidorf
' Emne: RE: date format problems The standard for an actionForm is to have every field as String. All conversion (which should really be thought of as business logic) should occur in the Action classes or further down the food chain. If this is not possible in your case or does not solve what your

RE: date format problems

2003-03-06 Thread Michael Cardon
new java.text.ParseException(Date Of Birth:, pe.getErrorOffset()); } } } -Original Message- From: Søren Blidorf [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 3:42 PM To: 'Struts Users Mailing List' Subject: SV: date format problems

SV: date format problems

2003-03-06 Thread Søren Blidorf
That did it, Thanks a million. It looks almost like what I did, but I found my mistake. -Oprindelig meddelelse- Fra: Michael Cardon [mailto:[EMAIL PROTECTED] Sendt: 7. marts 2003 00:50 Til: Struts Users Mailing List Emne: RE: date format problems Here is what I do. The client enters

Re: date format problems

2003-03-06 Thread Gemes Tibor
: date format problems 2003. március 6. 16:06 dátummal Søren Blidorf ezt írtad: Hi. I have an action that gets a date from the MS SQL 2000 in -MM-dd. I convert it with simpledateformat as dd-MM- and put it in a jsp form. When submitting the form the date must

date format

2003-02-17 Thread usha
Hi i need to display the date fields on the jsp in the format dd/MMM/. is there any simple way i can get this like configuration or writing any class etc.. if anybody has any ideas plz help me Thanks usha - To

RE: date format

2003-02-17 Thread Desmond
Use the SimpleDateFormat to do it so. Refer this webpage http://java.sun.com/docs/books/tutorial/i18n/format/simpleDateFormat.html -Original Message- From: usha [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 3:38 AM To: [EMAIL PROTECTED] Subject: date format Hi i need

RE: date format

2003-02-17 Thread Mark Chaimungkalanont
: Subject: RE: date format 19/02/2003 04:03 AM

Date format question

2003-02-05 Thread Swish
Hello, I was wondering if there is a way to use the bean:write tag to convert a string in sql time stamp format to a format of my choosing. I believe one can write a Date object out using bean:write ...format=dd/MM//, but can I convert a string 2002-12-25 00:00:00 to 12/25/2002. Thanks

RE: Date format question

2003-02-05 Thread John Espey
the JSTL format parseDate tag will do the trick for you -Original Message- From: Swish [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 7:34 PM To: Struts Users Mailing List Subject: Date format question Hello, I was wondering if there is a way to use the bean:write tag

RE: Date format question

2003-02-05 Thread Garth Patil
= DateFormat.getDateTimeInstance(DateFormat.LONG,DateFormat.SHORT); return df.format(getDate()); } From: John Espey [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Date format question Date: Wed, 5 Feb 2003 19:36:23

New BeanUtil 1.6/ConvertUtils/Date Format/toString()

2003-01-23 Thread Jim Krygowski
Hi All- A little while ago someone on this list emailed me directly with a question and I didn't have the answer he wanted. In the intervening days, I lost this person's email, so I'm going to post to the list hoping that he will get this message. You asked me how one could use Rick Reumann

RE: [OT] Date format

2003-01-17 Thread Andrew Hill
[mailto:[EMAIL PROTECTED]] Sent: Thursday, 16 January 2003 22:56 To: [EMAIL PROTECTED] Subject: Date format Hi, Please excuse me for the off-topic question, I need this urgently, so posting it. How can I get the current date format? (style: DateFormat.SHORT, locale: Default) I used

RE: [OT] Date format

2003-01-17 Thread Suresh Addagalla
and not SimpleDateFormat. Suresh -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 9:11 AM To: Struts Users Mailing List Subject: RE: [OT] Date format Your best bet is to use the static factory methods in the DateFormat class. ie: Locale

RE: [OT] Date format

2003-01-17 Thread Andrew Hill
January 2003 11:41 To: Struts Users Mailing List Subject: RE: [OT] Date format Your best bet is to use the static factory methods in the DateFormat class. ie: Locale locale = getLocale(request); //Use struts Action method to get locale dateTimeFormat = ateFormat.getDateTimeInstance( DateFormat.SHORT

RE: [OT] Date format

2003-01-17 Thread Andrew Hill
Mailing List'; [EMAIL PROTECTED] Subject: RE: [OT] Date format Hi, What I am looking for is how to display the *format*, and not how to display a date in a given format. So, there doesn't seem to be anything provided with the API. I need a method like toPattern() of SimpleDateFormat

Re: [OT] Date format

2003-01-17 Thread Mark Lepkowski
RE: [OT] Date formatWith SimpleDateFormat you specify the format as a String. You surely should be able to display that string. What I am looking for is how to display the *format*, and not how to display a date in a given format. (snip)

Date format

2003-01-16 Thread Suresh Addagalla
Hi, Please excuse me for the off-topic question, I need this urgently, so posting it. How can I get the current date format? (style: DateFormat.SHORT, locale: Default) I used: SimpleDateFormat formatter = new SimpleDateFormat() ; String format = formatter.toPattern() ; It gives: M/d/yy hh:mm

Re: Date format

2003-01-16 Thread Mark Lepkowski
:55 AM Subject: Date format Hi, Please excuse me for the off-topic question, I need this urgently, so posting it. How can I get the current date format? (style: DateFormat.SHORT, locale: Default) I used: SimpleDateFormat formatter = new SimpleDateFormat() ; String

RE: Date format

2003-01-16 Thread Mark Galbreath
Check out java.util.Calendar. Particularly the constants. Mark -Original Message- From: Suresh Addagalla [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 9:56 AM How can I get the current date format? (style: DateFormat.SHORT, locale: Default) -- To unsubscribe, e-mail

date format

2002-12-18 Thread Doug Ogateter
Hi: I have a problem with date format. I appreciate your help. Using bean:write name=customer property=day /, the web page displayed the day as Sun Nov 30 00:00:00 EST 1980 . To format the day, I added formatKey, so the above tag bean:write tag becomes bean:write name=customer property=day

RE: date format

2002-12-18 Thread James Childers
Try customer.day.format=dd/MM/ mm = minutes in hour MM = months -= J -Original Message- From: Doug Ogateter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 9:52 AM To: Struts Users Mailing List Subject: date format Hi: I have a problem with date format

RE: date format

2002-12-18 Thread Doug Ogateter
, 2002 9:52 AM To: Struts Users Mailing List Subject: date format Hi: I have a problem with date format. I appreciate your help. Using , the web page displayed the day as Sun Nov 30 00:00:00 EST 1980 . To format the day, I added formatKey, so the above tag bean:write tag becomes

bean:write and Date format

2002-09-23 Thread Cathy Osekizoglu
Using bean:write name=aPayment property=date/, I got the date as: Fri Aug 24 23:42:00 EDT 2002. How can I change it to Fri Aug 24 02 23:42 using struts tag? Thank you for your help. Cathy - Post your free ad now! Yahoo! Canada Personals

Re: bean:write and Date format

2002-09-23 Thread Jeff_Mychasiw
could a helper method is the form bean that formats the date called String getDateFormatted() .. Cathy Osekizoglu [EMAIL PROTECTED] on 09/23/2002 03:17:42 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To:[EMAIL PROTECTED] cc: Subject:bean:write and Date

Re: bean:write and Date format

2002-09-23 Thread Cathy Osekizoglu
could a helper method is the form bean that formats the date called String getDateFormatted() .. Cathy Osekizoglu on 09/23/2002 03:17:42 PM Please respond to Struts Users Mailing List To: [EMAIL PROTECTED] cc: Subject: bean:write and Date format Using , I got the date as: Fri Aug 24 23:42

Re: bean:write and Date format

2002-09-23 Thread Jeff_Mychasiw
). Cathy Osekizoglu [EMAIL PROTECTED] on 09/23/2002 04:05:09 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To:Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Re: bean:write and Date format Jeff: I am using struts1.1. I tried use formatKey as you