Zeittextformat Kotlin Android Studio
val currentTime: String = SimpleDateFormat("HH:mm:ss", Locale.getDefault()).format(Date())
//for time
Dieter
val currentTime: String = SimpleDateFormat("HH:mm:ss", Locale.getDefault()).format(Date())
//for time
val currentDate: String = SimpleDateFormat("dd/MM/yyyy", Locale.getDefault()).format(Date())
//for date