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
import java.util.*;
|
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: J2ME Current Date And Time View All Comments
Post your Comment