How can you verify that a date / time was entered in a field? We tried to convert the time into a long, and then check if null, but it doesn't like that. starttime = time.getDStartTime().getTime(); if (starttime == null) { starttime = 0; } What do you need to convert the time to before checking (String?), or what can you use to check a long?
Paul Stevens
Ranch Hand
Joined: May 17, 2001
Posts: 2823
posted
0
Use the DateFormat parse(String) method. It will throw an exception if the string is not a valid date.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.