I'm getting a NumberFormatException while executing the below statements.
Calendar cal = Calendar.getInstance();
int year = cal.get(Calendar.YEAR);
int month = cal.get(Calendar.MONTH);
int day_of_month = 15;
long m_time = Long.parseLong((month + 1) + "/" + day_of_month + "/" + year);
and
long m_time = Long.parseLong(String.valueOf((month + 1) + "/" + day_of_month + "/" + year));
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…