struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Navjot Singh" <navjo...@net4india.net>
Subject RE: [OT] Date parsing problem with <fmt:parseDate>
Date Fri, 06 Jun 2003 13:39:42 GMT
oops, i got the problem. Actually, it has to be 

pattern="yyyy-MM-dd HH:mm:ss"

rather than 

pattern="yyyy-MM-dd hh:mm:ss"

navjot singh

|-----Original Message-----
|From: Navjot Singh [mailto:navjot.s@net4india.net]
|Sent: Friday, June 06, 2003 7:01 PM
|To: Struts Users Mailing List
|Subject: [OT] Date parsing problem with <fmt:parseDate>
|
|
|hi,
|
|Has anybody faced any problems with <format taglib>
|
|The call to this TAG
|<fmt:parseDate var="msgDate" value="${sentOn}" pattern="yyyy-MM-dd 
|hh:mm:ss"
|scope="page"/>
|
|is giving me this ERROR
|In <parseDate>, value attribute can not be parsed: "2002-12-12 14:21:59"'
|
|I have RTFS and got the idea that ths error is coming on when ParseDateTag
|calls
|dateformat.parse(value); //code verbatim is parser.parse(input);
|
|Any help is appreciated.
|
|---------------
|regards
|Navjot Singh
|Net4India Ltd.
|
|
|---------------------------------------------------------------------
|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


Mime
View raw message