SimpleDataFormat.parse

Hello. All the tutorials I've seen on dates in java mention a SimpleDateFormat.parse (string str) method. This takes a string as an argument and returns a date. The thing is that the following message keeps popping up in my Eclipse IDE.

"The method Parse (String) is undefined for the type DateFormat"

Now, I know what it means. Obviously my version of java does not support this method. How can I make this method available? What I do need to update something specific? And is it possible within Eclipse as I don't want to start reinstalling things. Thank you very much.

I somehow doubt that SimpleDateFormat.parse is used because it does not exist.

As for Java:

Non-mobile devices use J2SE that has many features newcomers often impossible to find here.

BlackBerry uses J2ME which is a subset of J2SE, so not everything is included. It is preferable to have the BlackBerry documentation to the top, so you can see what is and is not available to use.

On the note of documentation, if you open it and search for HttpDateParser as you have been recommended so you can parse the date you are trying to do. You can then take the returned value and pass it into a Date object that can be passed in a Calendar object, which can be converted to a different format, such as jprofitt and I mentioned in your other post on how to format dates.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for