VENKOOL IT
HOME
TUTORIALS
PROGRAMS
USER QUESTIONS
++++++++++ Best Blog for Learning ANDROID ++++++++++
Tuesday, 12 February 2013
Get Present Date using Calendar in Android ?
Posted by
Unknown
// get the Calendar
Calendar c = Calendar.
getInstance
();
// get the year,month,day
int
cYear = c.get(Calendar.
YEAR
);
int
cMonth = c.get(Calendar.
MONTH
);
int
cDay = c.get(Calendar.
DAY_OF_MONTH
);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment