Android 日期轉爲爲毫秒,毫秒轉化爲日期,獲取當期日期年、月、日

//將時間毫秒值轉化爲年月日 val date = Date(System.currentTimeMillis()) val simpleDateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.getDefault()) val dateStr = simpleDateFormat.format(date) OLogsProUtil.e("
相關文章
相關標籤/搜索