I am calculating timestamp from system time as
System.currentTimeMillis()
in java.
Later, i want to calculate year , moth and date from this time stamp. is there any way to do so?
I am calculating timestamp from system time as
System.currentTimeMillis()
in java.
Later, i want to calculate year , moth and date from this time stamp. is there any way to do so?
Calendar cal = Calendar.getInstance();
cal.setTimeInMillis(timestamp);
int year = cal.get(Calendar.YEAR);