This is a simple J2ME form example, that is going to show the current date and time on the screen. Like core Java J2ME too use the same java.util package to show the current date as well as current time on the screen. In this Midlet we have set the current date and time as date & time. That's why it is going to show you current date and time, every time you runs the application.
The output of the application will look like as below given image..
First of all in this image you can see that we have created a form called Date & Time and set the current time and date as Item.
Source Code of DateAndTime.java
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial