cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Linden H van der (MI)" <H.vanderLin...@MI.unimaas.nl>
Subject RE: date formatting issue
Date Fri, 16 May 2008 08:24:41 GMT
Hi,
 
that's because your lenient setting is set to true, which recalculates the date exactly the
way you describe. Set lenient to false and you should get an error.
 
Bye, Helma

	-----Original Message-----
	From: RĂ©gis Millet [mailto:milletregis@gmail.com] 
	Sent: Thursday, May 15, 2008 17:29
	To: users@cocoon.apache.org
	Subject: date formatting issue
	
	
	Hello!
	 
	I have a cocoon field, formated like that :
	fd:datatype 

	base="date"> 

	

	<fd:convertor type="formatting" lenient="true"> 

	

	<fd:patterns> 

	

	<fd:pattern>dd/MM/yyyy</fd:pattern> 

	

	</fd:patterns> 

	

	</fd:convertor> 

	

	</fd:datatype>
	 
	My problem is that, when i input a non-valid date, it is accepted.
	 
	for example, if I input "32/12/2001", it is accepted as "01/01/2002".  does anyone know a
way to correct this?
	Thanks a lot.


Mime
View raw message