common-ktx

//library/ss_n.common_ktx.extension/toDate

toDate

[androidJvm]
fun String.toDate(pattern: String = "yyyy/MM/dd HH:mm:ss", locale: Locale = Locale.getDefault()): Date?

String parse to Date

Return

parsed Date

Parameters

androidJvm

   
pattern default = "yyyy/MM/dd HH:mm:ss"
locale default = device default