Date and time in Android studio (Kotlin language)
问题 My friends and I are developing an app in android studio using Kotlin. We are quite new in app development but we have decent prior programming skills. For one of our functionalities we need to get current date and time. We tried all kinds of imports and methods, but none seem to work with SDK lower than 26. With our app we target devices with minimum API 19. For example: package hr.com.wap.wap import android.support.v7.app.AppCompatActivity import android.os.Bundle import kotlinx.android