Hi,
I am getting compilation error while using SimpleDateFormat. I have imported
java.text.SimpleDateFormat; and java.util.Date , but I don't know what's wrong.
Can anybody suggest me how to resolve this.
Thank you very much in advance.
Thiru
Printable View
Hi,
I am getting compilation error while using SimpleDateFormat. I have imported
java.text.SimpleDateFormat; and java.util.Date , but I don't know what's wrong.
Can anybody suggest me how to resolve this.
Thank you very much in advance.
Thiru
Can you tell more about the error you get. No one knows about your error do far, and how to answering to you?
hi, i am new to j2me i just want to ask which actions can be performed on fire command in canvas.
thank you.
you can't use it
Hi everyone, i just started with j2me programming. So need all your support to learn more. Right now just created a small program for email login. Please help me how to compare between the strings entered by the user for all the fields and if it does not match ,clear all the fields back to normal.please help me.
Not much clear what's you question is, what you want to compare with?
In general, for string comparison equal method used, that == sign. Just doing a equal test using == sign not make sense at all. And also, once you do the validation in any way, if you want to make back to the original state we can do several things, clean-up all the control entries one of them. If you want to find a better answer on this please ask your question more clearly.
Good luck! :)
You can do something like this,
Code:DateFormat dateFormat = new SimpleDateFormat("dd-MMM-yy");
Date date = (Date)dateFormat.parse("11-June-07");
String s = dateFormat.format(date);
System.out.println(s);
Are you sure Eranga?
I think don't exists SimpleDateFormat in J2ME
Aw, c'mon. This thread's more than 2 years old.
But yes, SDF doesn't exist in Java ME.
db