Hello!
I am developing one application (for Mobile phone) and I need help. I want to make something like this:
When user starts the application he can see current date and under date is some code. For every date, the code is different (today is 12345, tomorrow is 2345 etc). What's driving my gears is that I don't know how to make date variable (how to see current date on phone) and by the date to show specific code.
Thanks
Date variable
Page 1 of 12 Replies - 481 Views - Last Post: 19 November 2010 - 08:59 AM
Replies To: Date variable
#2
Re: Date variable
Posted 19 November 2010 - 07:55 AM
Are you using Java ME or...?
If you are, then this should do the job according to the API. This allocates a Date object and initializes it to represent the current time specified number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT.
If you are, then this should do the job according to the API. This allocates a Date object and initializes it to represent the current time specified number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT.
Date dateObj = new Date();
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote







|