Hi folks

Im saving the value entered in the DateField in RMS as a String. But while retrieving the value and setting it to another DataField object ,its showing NumberFormateException.

Im using NetBeans 4.2 (Visual MIDlet), CLDC 2.0 and MIDP 1.0

Im saving the date as :

String DOB = String.valueOf(dateofbirthDatefield.getDate());

while retrieving :

dateofbirthDatefield.setDate(new Date(Long.parseLong(DOB)));

But its working fine in Netbeans4.1( not a Visual MIDlet)

Plz suggest how can i resolve the NumberFormatException in Visual MIDlet and what might be my mistake.

Thanks in advance.