tags:

views:

138

answers:

1

I was just wondering if a DateField can be set by a String value.

Would help me out thanks.

+1  A: 

Sure, but not directly...

SimpleDateFormat df1 = new SimpleDateFormat( "dd/MM/yy" );
java.util.Date dDate = df1.parse( strInput );
(DateField)yourDateField.setDate(dDate);
altCognito