m.h
m.h

Reputation: 59

How to determine tomorrow's date in J2ME

I am trying to determine tomorrow's date in J2ME and I have already read the following topic How to determine tomorrow's date in J2ME for use in a DateField? but the problem is I could not able to find the setDate() or setTimeInMillis() method of Date or Calendar class and they do not exist!

enter image description here

Upvotes: 0

Views: 276

Answers (1)

fn27
fn27

Reputation: 879

This example sets tomorrow's date

Calendar cal = Calendar.getInstance(); 

Date today = cal.getTime();

day.add(Calendar.DATE, 1);

Upvotes: 3

Related Questions