Forums Register Login

DateField Validation

+Pie Number of slices to send: Send
Hi,
This is Rajesh
Can i do date field validation , I am using
datefield df=new DateField("", DateField.DATE);
If user doesnt select any date , it must show alert. instead of internally giving null pointer exception
Please Help me out
Thanks & Regards
Rajesh
+Pie Number of slices to send: Send
Hi,
I got a way to solve the problem,
datefield df=new DateField(",DateField.Date);
try
{
String date=df.getDate.toString();
}
catch(NullPointerException e)
{
give same alert;
AlertMsg();
}
An elephant? An actual elephant. Into the apartment. How is the floor still here. Hold this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1396 times.
Similar Threads
j2me: Convert String to Date
Time format problem in MIDLet
DateField Question
How to retrieve day in MIDlet?
DateField display variations
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 02:58:38.