net.dankito.utils.datetime.LocalDateExtensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-utils Show documentation
Show all versions of java-utils Show documentation
Some basic utils needed in many projects
The newest version!
package net.dankito.utils.datetime
import java.time.LocalDate
import java.util.*
@JvmName("asNullableUtilDate")
fun LocalDate?.asUtilDate(): Date? {
return DateConvertUtils.asUtilDate(this)
}
fun LocalDate.asUtilDate(): Date {
return DateConvertUtils.asUtilDate(this)
}