... | ... | @@ -75,5 +75,11 @@ Keď zistíme aktuálny čas, musíme ho správne naformátovať: |
|
|
val currentDateTime = Calendar.getInstance().time
|
|
|
|
|
|
val formatter = SimpleDateFormat("dd. MM. yyyy HH:mm", Locale("cs"))
|
|
|
val formattedDateTime = formatter.format(date)
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
val formattedDateTime = formatter.format(date)
|
|
|
```
|
|
|
|
|
|
Vytvorte si nové `TextView`, alebo použite `\n` (nový riadok).
|
|
|
|
|
|
## HW
|
|
|
|
|
|
Dorobte dnešné cviko. |
|
|
\ No newline at end of file |