Код: Выделить всё
public static String getNowDate() throws ParseException
{
return Myformat(toFormattedDateString(Calendar.getInstance()));
}
Код: Выделить всё
public static String getNowDate() throws ParseException
{
Calendar temp=Calendar.getInstance();
return temp.YEAR+"-"+temp.MONTH+"-"+temp.DAY_OF_MONTH;
}
Пожалуйста, помогите мне узнать точную дату. все, что мне нужно, это дата SDK.
Подробнее здесь: https://stackoverflow.com/questions/130 ... te-android
Мобильная версия