toZonedDateTime

fun Date.toZonedDateTime(useSystemTimeZone: Boolean = true): ZonedDateTime

Return

ZonedDateTime.

Parameters

useSystemTimeZone

If true, converts to time zone of the device, else leaves as UTC.