datetimeToString

fun datetimeToString(date: Date = Date(), dateFormat: String = FORMAT_YYYY_MM_DD_HH_MM_SS): String

Formats a Date into a date/time string by parsing dateFormat.

If you don't set the date or dateFormat,it will parse current time in dateFormat format by default.

Return

the formatted time string.

Since

0.0.1

Parameters

date

Date object.