RichUtils / pyxis.uzuki.live.richutilskt.utils / java.util.Date / asDateString

asDateString

@JvmOverloads fun Date.asDateString(format: String? = "yyyy-MM-dd HH:mm:ss"): String

format date with DateFormat string

Parameters

format - optional. default is yyyy-MM-dd HH:mm:ss (2017-06-02 19:20:00)

Return
Formatted Date